
:root {
    --primary:#d856c2;
    /*--secondary: #a83e9e;*/
    /*--secondary: #c42294;*/
    --secondary: #44d0c5;
    --green: #4b9767;
    --indigo: #9c27b0;
    --white: #f4f4f4;
    --dark-white: #f6f6f6;
    --red: #bf4e4e;
    --dark: #1a1a1a;
    --darkgrey: #2f2f2f;
    --lightgrey: #ccc;
    --mostaza: rgb(167, 162, 48);
    --orange: #e46e2d;
    --yellow: #ffe00c;
    --blue: steelblue;
    --purple: #670dfb;
    --sand: #c3ce84;
    --verde: #117a8b;
    --dark-blue: #1c2228;
    --medium-blue: #29313a;
    --light-blue: #354a5f;
    --highlight-blue: #077eaf;
    --teal: #5ebdb2;
    --navy: #b32a37;
    --lightpink:#ffe3fc;;
}

@font-face {
    font-family: "Playwrite IT Moderna";
    src: url("../fonts/PlaywriteITModerna-Regular.ttf") format('truetype');
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-decoration: inherit;
    text-transform: none;
}
  
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/PublicSans-VariableFont_wght.ttf") format('truetype');
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-decoration: inherit;
    text-transform: none;
}
  
@font-face {
    font-family: "Jost";
    src: url("../fonts/Jost-Italic-VariableFont_wght.ttf") format('truetype');
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-decoration: inherit;
    text-transform: none;
}
  
  /* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: "Jost", "Public Sans",Roboto, "Open Sans";
    line-height: 1.6;
    background-color: var(--white);
    color: var(--darkgrey);
    -webkit-tap-highlight-color: transparent; /* For Safari */
    outline: none; /* Remove outline */
}

button:disabled, button[disabled],button:disabled:hover, button[disabled]:hover {
    background: var(--lightgrey);
    color: var(--darkgrey);
}

.hidden {
    display: none;
}

.width100 {
    width: 100% !important;
}

.width90 {
    width: 90% !important;
}

.width80 {
    width: 80% !important;
}

.width70 {
    width: 70% !important;
}

.width60 {
    width: 60% !important;
}

.width50 {
    width: 50% !important;
}

.border-bottom {
    border-bottom: 1px solid var(--lightgrey);
    margin-bottom: 10px;
}

.border-top {
    border-top: 1px solid var(--lightgrey);
    margin-top: 10px;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--red);
}

.text-green {
    color: var(--green);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-bold {
    font-weight: bold;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.bg-lightpink {
    background-color: var(--lightpink);
}

.error {
	background: var(--red);
	color: var(--white);
	width: 100%;
	display: block;
	padding-left: 1em;
}

hr {
	border: 0;
	border-bottom: 1px solid var(--primary);
	margin: 10px 0;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary); /* Un naranja vibrante */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--dark-white);
    color: var(--darkgrey);
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);
    z-index: 999;
}

header img {
    width: 150px;
}

.slogan {
    font-family: "Playwrite IT Moderna","Jost";
    text-align: center;
    padding-top: 70px;
    color: var(--primary);
    font-size: 1.5em; 
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5em;
}

.menu-container.checkout-header {
    justify-content: space-between;
}

.menu-container.checkout-header .link,
.menu-container.checkout-header .link:hover {
    text-decoration: none;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-icon {
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--dark-white);
    color: var(--darkgrey);
    transition: left 0.3s ease;
    padding: 0.5em 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-tap-highlight-color: transparent; /* For Safari */
    outline: none; /* Remove outline */
}

.sidebar.active {
    left: 0;
}

.close-btn {
    font-size: 2em;
    cursor: pointer;
    line-height: 1em;
}

.menu-item {
    text-align: left;
    border-bottom: 1px solid var(--darkgrey);
}

.menu-item a, .menu-item p, .submenu a {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    color: var(--dark);
    text-decoration: none;
    display: block;
    padding: 10px 0.5em;
    cursor: pointer;
}

.menu-item p {
  display: flex;
  justify-content: space-between;
}

.submenu {
    display: none;
    margin-left: 20px;
}

.submenu a {
    border-bottom: 1px solid var(--darkgrey);
}

.submenu a:last-child,.menu-item:last-child {
    border-bottom: none;
}

.menu-item.active .submenu {
    display: block;
}

main {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.container-wrapper {
    width: 100vw;
    min-height: calc(100vh - 66px);
}


.line-menu {
    display: none;
    width: 300px
}

.navbar-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-item {
    float: left;
}

.navbar-item a {
    display: block;
    color: var(--darkgrey);
    text-align: center;
    padding: 0.5em 1em;
    text-decoration: none;
}

.navbar-item a:hover {
    background-color: var(--primary);
    color: var(--dark-white);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--dark-white);
    min-width: 200px;
    z-index: 1;
    list-style: none;
}

.dropdown-menu li {
    float: none;
}

.dropdown-menu a {
    padding: 12px 16px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-label {
    position: absolute;
    background: var(--primary);
    border-radius: 51%;
    padding: 0 0.5em;
    font-size: 0.7em;
    color: var(--white);
    transform: translate(-100%,30%);
}

.notification-total {
    display: none;
    font-size: 0.75em;
}

h1, h2 {
    margin: 0.25em 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    padding-top: 0px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: fixed;
    background-color: #f5f5f5;
    margin: auto;
    padding: 1em;
    border: none;
    border-radius: 0 !important;
    width: 100vw;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 0.4s;
    animation-name: animatebottom;
    animation-duration: 0.4s;
    height: 50%;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-auto-rows: min-content;
    gap: 0.75em;
}

@-webkit-keyframes animatebottom {
    from {
        top: 100%;
        opacity: 0;
    }
    to {
        top: 50%;
        opacity: 1;
    }
}

@keyframes animatebottom {
    from {
        top: 100%;
        opacity: 0;
    }
    to {
        top: 50%;
        opacity: 1;
    }
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    cursor: pointer;
    line-height: 18px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal_product {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 5px;
}

.modal_product img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.modal_header,
.modal_resume {
    display: flex;
    justify-content: space-between;
}

.modal_buttons {
    display: flex;
    justify-content: space-evenly;
}

/* Estilos para productos */
.product-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin-bottom: 1.5em;
    padding: 0.5em 0;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    flex-direction: column;
    gap: 0.75em;
    align-items: center;
    border-radius: 0.5em;
    cursor: pointer;
    opacity: 0; /* Start hidden */
    transform: translateY(50px); /* Start slightly below */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
    -webkit-tap-highlight-color: transparent; /* For Safari */
    outline: none; /* Remove outline */
}

.product-item.visible {
    opacity: 1; /* Make the item visible */
    transform: translateY(0); /* Move to original position */
}

.product-item img:hover {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

.image-crop {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.image-crop img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

.product-item img {
    width: 260px;
    margin-top: 0px;
    transition: 0.4s;
}

.product-price {
    font-weight: bold;
    font-size: 1.15em;
    font-family: 'Public Sans';
}

.product-name-wrapper {
    width: 100%;
    max-width: 11em;
}

.product-name {
    font-weight: bold;
    font-size: 1.2em;
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
    color: var(--primary);
}

.buy-btn {
    background-color: var(--secondary);
    color: white;
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 0.15rem;
    transition: all 0.4s;
    cursor: pointer;
    font-family: "Roboto";
    text-align: center;
    outline: 0;
    font-size: medium;
}

.buy-btn:hover, .buy-btn:focus {
    background-color: #c05aab;
}

/* Contenedor del producto sin stock */
.product-item.out-of-stock {
    position: relative;
}

/* Opacidad reducida en la imagen */
.product-item.out-of-stock .image-crop img {
    opacity: 0.5;
    filter: grayscale(30%);
}

/* Label de Sin Stock sobre la imagen */
/*.stock-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    padding: 6px 15px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}*/

.stock-label.ribbon {
    position: absolute;
    top: 40px;
    /*left: 0px;*/
    background: var(--secondary);
    color: white;
    padding: 1em 4em 1em 1em;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    /*width: 200px*/
}

/* Precio tachado cuando no hay stock */
.product-item.out-of-stock .product-price {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Botón deshabilitado */
.buy-btn.disabled {
    background: #fce7f3 !important;
    color: #db2777 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;
}

.buy-btn.disabled:hover {
    background: #fce7f3 !important;
    transform: none !important;
}

/* Alternativa: Label más grande centrado */
.stock-label.centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    padding: 10px 25px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .stock-label {
        font-size: 11px;
        padding: 5px 12px;
    }
}

.link {
	text-decoration: underline;
	cursor: pointer;
    color: var(--secondary);
}

.add-to-cart {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.product-layout {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 1.5em;
    padding: 0.5em 0;
}

.product-layout img {
    width: 100%;
    /*padding: 1em;*/
}

.product-resume, .product-description {
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.product-resume .buy-btn {
    width: 100%;
    text-align: center;
    border-radius: 0.1em;
    /* background-color: var(--primary); */
}

.product-resume .product-name {
    font-size: 1.7em;
    margin: 0;
    /* color: var(--secondary); */
}

.product-layout.out-of-stock .imagen-principal {
    position: relative;
    overflow: hidden;
}

/* Imagen con opacidad reducida */
.product-layout.out-of-stock .imagen-principal img {
    opacity: 0.5;
    filter: grayscale(30%);
}

.product-layout.out-of-stock .product-price {
    text-decoration: line-through;
    opacity: 0.6;
    color: #999;
}

/* Nombre del producto con opacidad */
.product-layout.out-of-stock .product-name {
    opacity: 0.8;
}


@media (max-width: 768px) {
    .stock-label {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .stock-label.centered {
        font-size: 14px;
        padding: 12px 25px;
    }
    
    .stock-label.ribbon {
        font-size: 11px;
    }
}

.categoria-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1em;
    margin: 1.5em 0;
    /*padding: 1em;*/
    place-items: center;
}

.category-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

.category-image.visible{
    opacity: 1; /* Make the item visible */
}

.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary);
    font-size: 1.5em;
    text-align: right;
    background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0.7) 65%,  transparent 100%);
    padding: 10px;
    width: 100%;
    font-weight: bolder;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--primary);
    font-size: .85em;
}

/* Estilos para el carrito */
.carrito {
    position: fixed;
    top: 0;
    right: -100%; /* Hide the menu off-screen */
    width: 100%;
    height: 100%;
    background-color: var(--dark-white);
    color: var(--darkgrey);
    transition: right 0.3s ease;
    padding: 0.5em 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    -webkit-tap-highlight-color: transparent; /* For Safari */
    outline: none; /* Remove outline */
}

.carrito.open {
    right: 0; /* Show the menu */
}

.lista-carrito {
    display: flex;
    height: 75%;
    overflow-y: auto;
    flex-direction: column;
    gap:5px;
    font-size: 14px
}

.item-carrito {
    display: grid;
    grid-template-columns: 4.5em auto;
    column-gap: 5px;
    height: 6em;
    font-weight: 600;
}

.item-carrito-precio {
    font-size: medium;
}

.item-detalle-carrito {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.item-detalle-carrito a {
    text-decoration: none;
    color: var(--black);
}

.item-detalle-carrito .item-valores {
    display: flex;
    justify-content: space-between;
    padding-right: 0.25em;
}

.img-item-carrito {
    width: 4.5em; /* Set the desired width */
    height: 4.5em; /* Set the desired height */
    overflow: hidden; /* Hide overflow */
    position: relative; /* Positioning context for absolute children */
}

.img-item-carrito img {
    position: absolute; /* Position the image absolutely */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    min-width: 100%; /* Ensure the image covers the container */
    min-height: 100%; /* Ensure the image covers the container */
    transform: translate(-50%, -50%);
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--lightgrey);
    border-radius: 3px;
    width: 72px;
}

.item-cant {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 0;
    border: none;
    background-color: var(--white);
}

.item-cant-btn {
    margin: 0;
    line-height: 22px;
    width: 24px;
    cursor: pointer;
    border-radius: 0;
    /* border: 1px solid var(--lightgrey); */
    background-color: var(--white);
    color: black;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}

.quantity-number {
    width: 40px;
    text-align: center;
    margin: 0 10px;
    height: 40px;
    border-radius: 5px;
    border: none;
}

.total-carrito {
    font-weight: 600;
    text-align: right;
    padding-right: 0.25em;
    margin-bottom: 0.5em;
    display: flex;
    justify-content: space-between;
    font-size: 1.4em;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    z-index: 1000; /* Below the menu */
}

.overlay.active {
    display: block; /* Show the overlay */
}

.checkout {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.5em 1em;
    min-height: calc(100vh - 215px);
}

.resume-item {
    display: grid;
    grid-template-columns: 4.5em auto auto;
    gap: 5px;
    margin-bottom: 0.5rem;
    padding: 0 10px;
}

.resume-item-2col {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.5rem;
    padding: 0 10px;
}

.input-container {
    position: relative;
    padding: 1rem 0 0;
    margin-bottom:  0.75rem;
}

.flex .input-container .checkout-input {
    width: 10.5rem !important;
}

.checkout-resume {
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.checkout-expandable {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    cursor: pointer;
}

.checkout-input, .div_provincia {
    border: 1px solid var(--primary);
    outline: 0;
    font-size: 1em;
    color: var(--secondary);
    padding: 0.5em;
    padding-right: 2rem;
    background: transparent;
    transition: border-color 0.2s;
    width: 100%;
    /*min-width: 15em;*/
}

.checkout-input::placeholder {
    color: transparent;;
}

label, .checkout-input:focus ~ .checkout-label {
    position: absolute;
    top: -0.3em;
    left: 0.35rem;
    padding: 0 0.25rem;
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    transition: 0.2s ease all;
    pointer-events: none; /* Evita que la etiqueta interfiera con el clic en el input */
}

.checkout-success {
    padding: 1em;
    box-shadow: 2px 2px 10px rgba(0,0,0,.2);
    margin: 30px 10px;
    max-width: 481px;
}

.pedido {
    width: 100%;
    margin-top: 1em;
}

.pedido-info {
    background: var(--lightpink);
    border-left: 4px solid var(--primary);
    padding: 0.5rem 1em;
    margin: 0.5em 0.25em;
    border-radius: 8px;
}

.pedido-info h3 {
    color: var(--primary);
}

.pedido-info .pedido-info-grilla {
    display: grid;
    grid-template-columns: repeat(1fr);
    gap: 0.5em;
}

.pedido-info .pedido-info-grilla .pedido-info-detalle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.summary-section {
    background: var(--lightpink);
    padding: 0.5em;
    border-radius: 8px;
    margin: 1em 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25em 0;
    /*border-bottom: 1px solid var(--lightgrey);*/
}

.summary-row:last-child {
    border-bottom: none;
    margin-top: 10px;
    /*padding-top: 15px;*/
    border-top: 2px solid var(--primary);
}

.summary-label {
    font-size: 15px;
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.products-table thead {
    background: var(--lightpink);
}

.products-table th {
    padding: 1em;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #fce7f3;
}

/*.products-table tbody tr:hover {
    background: #fdf2f8;
    transition: background 0.3s ease;
}*/

.product-image {
    width: 60px;
    height: 60px;
    background: #fce7f3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #db2777;
    font-weight: bold;
    font-size: 24px;
}

.product-name-table {
    /*font-weight: 600;*/
    color: #333;
    margin-bottom: 5px;
}

.product-sku {
    font-size: 12px;
    color: #999;
}

.price {
    /*font-weight: 600;*/
    text-align: right;
    /*color: #db2777;*/
}

.hidden-phone {
    display: none;
}

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
    .products-table thead {
        display: none;
    }

    .products-table,
    .products-table tbody,
    .products-table tr,
    .products-table td {
        display: block;
        width: 100%;
    }

    .products-table tr {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Alternar colores de fondo por producto */
    /*.products-table tr:nth-child(odd) {
        background: #fdf2f8;
    }*/

    .products-table tr:nth-child(even) {
        background: #fff;
    }

    .products-table td {
        border: none;
        padding: 10px 15px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .products-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #db2777;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Imagen ocupa 2 filas */
    .products-table td:first-child {
        grid-row: 1 / 3;
        justify-content: center;
        padding: 15px;
        border-bottom: 2px solid #fce7f3;
    }

    .products-table td:first-child::before {
        display: none;
    }

    .products-table tr {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
    }

    .product-image {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    /* Fila 1: Imagen + Producto */
    .products-table td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid #fce7f3;
    }

    .products-table td:nth-child(2)::before {
        margin-bottom: 5px;
    }

    /* Fila 2: Precio Unit., Cantidad, Subtotal */
    .products-table td:nth-child(3),
    .products-table td:nth-child(4),
    .products-table td:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
        padding: 8px 15px;
        border-bottom: none;
    }

    /* Distribuir los 3 campos en la segunda fila */
    .products-table tr {
        display: grid;
        grid-template-columns: 100px 1fr 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .products-table td:nth-child(2) {
        grid-column: 2 / 5;
        grid-row: 1;
    }

    .products-table td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .products-table td:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }

    .products-table td:nth-child(5) {
        grid-column: 4;
        grid-row: 2;
    }

    .products-table td:nth-child(3),
    .products-table td:nth-child(4),
    .products-table td:nth-child(5) {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 13px;
    }

    .products-table td:nth-child(3)::before,
    .products-table td:nth-child(4)::before,
    .products-table td:nth-child(5)::before {
        font-size: 10px;
        margin-bottom: 3px;
    }
}

/* TIMELINE HORIZONTAL DE ESTADOS */
.horizontal-timeline {
    background: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.1);
}

.horizontal-timeline-title {
    color: #db2777;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--lightgrey);
    z-index: 1;
}

.timeline-horizontal-progress {
    position: absolute;
    top: 30px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ec4899 0%, #db2777 100%);
    z-index: 2;
    transition: width 0.8s ease;
}

/* Ancho del progreso según el estado */
.timeline-horizontal-progress.step-1 { width: 0%; }
.timeline-horizontal-progress.step-2 { width: 34%; }
.timeline-horizontal-progress.step-3 { width: 66%; }
.timeline-horizontal-progress.step-4 { width: 100%; }

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
}

.timeline-step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Estado pendiente */
.timeline-step.pending .timeline-step-circle {
    background: #fce7f3;
    border: 3px solid #fbcfe8;
    color: #db2777;
}

/* Estado completado */
.timeline-step.completed .timeline-step-circle {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: 3px solid #ec4899;
    color: white;
}

/* Estado activo/actual */
.timeline-step.active .timeline-step-circle {
    background: white;
    border: 4px solid #ec4899;
    color: #ec4899;
    animation: pulse-horizontal 2s infinite;
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
}

@keyframes pulse-horizontal {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(236, 72, 153, 0);
    }
}

.timeline-step-label {
    font-weight: 600;
    font-size: 14px;
    color: #999;
    text-align: center;
    transition: color 0.3s ease;
}

.timeline-step.completed .timeline-step-label {
    color: #db2777;
}

.timeline-step.active .timeline-step-label {
    color: #ec4899;
    font-weight: 700;
}

.timeline-step-date {
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
    text-align: center;
}

.timeline-step.completed .timeline-step-date,
.timeline-step.active .timeline-step-date {
    color: #999;
}

/* Efecto hover */
.timeline-step:hover .timeline-step-circle {
    transform: scale(1.1);
}

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
    .horizontal-timeline {
        padding: 20px 15px;
    }

    .timeline-horizontal {
        flex-direction: column;
        max-width: 100%;
        margin: 0 calc(50% - 40px);
    }

    .timeline-horizontal::before {
        top: 0;
        left: 30px;
        right: auto;
        bottom: 0;
        width: 4px;
        height: 100%;
    }

    .timeline-horizontal-progress {
        top: 0;
        left: 30px;
        width: 4px !important;
        height: 0;
    }

    .timeline-horizontal-progress.step-1 { height: 0%; }
    .timeline-horizontal-progress.step-2 { height: 33.33%; }
    .timeline-horizontal-progress.step-3 { height: 66.66%; }
    .timeline-horizontal-progress.step-4 { height: 100%; }

    .timeline-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 30px;
        align-items: flex-start;
    }

    .timeline-step:last-child {
        margin-bottom: 0;
    }

    .timeline-step-circle {
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .timeline-step-info {
        flex: 1;
        text-align: left;
    }

    .timeline-step-label {
        text-align: left;
        font-size: 15px;
    }

    .timeline-step-date {
        text-align: left;
        font-size: 12px;
    }
}

.div_provincia {
    display: flex;
    flex-direction: row;
    gap:0.5em;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.skeleton {
    background-color: #e0e0e0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #d0d0d0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

.lazy {
    display: block; /* Mostrar la imagen */
    width: 100%; /* Ancho completo */
    height: auto; /* Altura automática */
    transition: opacity 0.5s; /* Transición suave al cargar */
    opacity: 0; /* Ocultar la imagen inicialmente */
}

.lazy[onload] {
    opacity: 1; /* Mostrar la imagen cuando se carga */
}

/* Botones */
button {
    background: var(--darkgrey);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2c3e50;
}

/* Estilos para el pie de página */
footer {
    text-align: center;
    padding: 20px 0;
    background: var(--primary);
    color: var(--white);
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Estilos para dispositivos  */
@media (min-width: 481px) {
    .container-wrapper {
        width: 90vW;
    }
    .checkout {
        min-height: calc(100vh - 215px);
    }
}
@media (min-width: 768px) {
    .hidden-phone {
        display: initial;
    }
    .pedido-info {
        margin: 0.5em 0em;
    }
    .pedido-info .pedido-info-grilla {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .pedido-info .pedido-info-grilla .pedido-info-detalle {
        flex-direction: column;
        justify-content: flex-start;
    }
    .checkout {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    .checkout-resume {
        height: auto;
    }
    .checkout-expandable {
        display: none;
    }
    .checkout-form {
        width: 70%;
        min-width: 20em;
    }
    .checkout-success {
        max-width: 481px;
    }
    .carrito {
        width: 460px;
    }
    #menuToggle {
        display: none;
    }
    .line-menu {
        display: block;
    }
    .close-btn {
        font-size: 1.5em;
    }
    .product-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    .categoria-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-overlay {
        font-size: 1.8em;
    }
    .product-layout {
        grid-template-columns: repeat(2,1fr);
        gap: 1em;
    }
    .product-description {
        grid-column: 1 / -1;
    }
    .notification-total {
        display: inline-block;
    }
    .sidebar {
        display: none;
    }
    .modal-content {
        width: 512px;
        bottom: 25%;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
    }
    @-webkit-keyframes animatebottom {
        from {
            bottom: -100%;
            opacity: 0;
        }
        to {
            bottom: 25%;
            opacity: 1;
        }
    }
    @keyframes animatebottom {
        from {
            bottom: -100%;
            opacity: 0;
        }
        to {
            bottom: 25%;
            opacity: 1;
        }
    }
}

@media (min-width: 1024px) {
    .container-wrapper {
        width: 1024px;
    }

    .product-wrapper.home {
        width: 84%;
        margin-left: 8%;
    }

    .product-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    /*.product-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }*/
}


.image-container {
    margin-bottom: 20px;
    position: relative;
}

.skeleton {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #d0d0d0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

.image-container img {
    width: 100%;
    height: auto;
    display: none; /* Hide image initially */
}

.flex {
    display: flex;
}

.space-between {
    justify-content: space-between;
}

section {
    margin-bottom: 3em;
}

.entrega_selector, .mediopago_selector {
    padding: 0.75em;
    cursor: pointer;
}

.entrega_selector {
    background-color: var(--lightpink);
    margin-bottom: 0.5rem;
}

.medio_pago_conteiner {
	background-color: var(--lightpink);
    margin-bottom: 0.5rem;
}

.mediopago_selector p {
    font-size: 0.75em;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
}

.producto-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 20px;*/
}

.imagen-principal {
    flex: 1;
    max-width: 500px;
    padding: 0 0.5em;
}
.imagen-principal img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}
.miniaturas {
    display: flex;
    flex-direction: column;
}
.miniaturas img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    /*filter: blur(1px);*/
    opacity: 0.5;
}
.miniaturas img:hover,
.miniaturas img.active {
    border-color: var(--primary);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) { /* Celular: miniaturas abajo */
    .producto-container {
        flex-direction: column;
        align-items: center;
    }
    .miniaturas {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .miniaturas img {
        width: 60px;
        height: 60px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) { /* Tablet: miniaturas a la izquierda */
    .producto-container {
        flex-direction: row-reverse;
    }
    .miniaturas {
        flex-direction: column;
    }
}
@media (min-width: 1025px) { /* Escritorio: igual que tablet */
    .producto-container {
        flex-direction: row-reverse;
    }
}

.titulo-con-lineas {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    color: var(--primary);
}

.titulo-con-lineas::before,
.titulo-con-lineas::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--primary);
    margin: 0 15px; /* Espacio entre línea y texto */
}