@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 15px;
}

.header.scrolled .logo {
    height: 30px;
}

.menu-icon, .cart-icon {
    color: #858383;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}


.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dd0a17;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.logo {
    height: 40px;
    transition: all 0.3s ease;
}

.favorites-title {
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    background-color: #fff;
}

.favorites-title h1 {
    font-size: 24px;
    color: #dd0a17;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 480px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-image {
    width: 100%;
    height: 150px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.favorite-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #e3c400; /* Amarillo */
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.favorite-icon.active {
    color: #ccc; /* Cambia el color si el producto no está en favoritos */
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 12px;
    color: #858383;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    flex-grow: 1;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #dd0a17;
    margin-bottom: 10px;
}

.view-more-btn {
    background-color: #dd0a17;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    font-family:'Montserrat', sans-serif;
    align-self: flex-start;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1001;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding: 20px;
    background-color: #dd0a17;
    color: #fff;
}

.close-sidebar {
    font-size: 24px;
    cursor: pointer;
}

.sidebar-search {
    padding: 20px;
    display: flex;
}

.sidebar-search input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 10px 0 0 10px;
    background-color: #dd0a17;
    color: #fff;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
}

.sidebar-search input::placeholder {
    color: #fff;
}

.sidebar-search button {
    padding: 10px;
    background-color: #dd0a17;
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.sidebar-categories {
    padding: 0 20px;
}

.sidebar-category-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.modal-image-carousel {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.modal-image {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    opacity: 0.7;
}

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

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

.modal-info {
    margin-bottom: 20px;
}

.modal-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-info .product-category {
    font-size: 14px;
    color: #858383;
    margin-bottom: 5px;
}

.modal-info .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #dd0a17;
    margin-bottom: 10px;
}

.modal-info .product-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.variant-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.variant-options label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.variant-options .variants {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.variant-options .variant {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.variant-options .variant.active {
    border-color: #dd0a17;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 30px;
}
.modal-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    background-color: #dd0a17;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

.quantity {
    margin: 0 10px;
    font-size: 16px;
    text-align: center;
}

.action-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #dd0a17;
    transition: color 0.3s ease;
}
.download-images-btn {
    background-color: #dd0a17;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Montserrat";
    align-self: center;
    margin-top: 10px;
}

.favorite-btn {
    color: #e3c400;
}

.action-btn.favorite-btn.active {
    color: #e3c400;
}

.add-to-cart-btn {
    background-color: #dd0a17;
    color: #fff;
    border: none;
    padding: 10px 60px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Montserrat";
    align-self: center;
    margin-top: 10px;
}

.add-to-cart-btn:hover {
    background-color: #6d0909;
}
.cart-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-slider.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    color: #dd0a17;
}
.cart-header h2 {
    margin: 0;
    font-size: 18px;
}
.close-cart {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #dd0a17;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.cart-item-variant {
    font-size: 12px;
    margin-bottom: 5px;
}
.cart-item-image {
    width: 80px;
    height: 60px;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: #dd0a17;
    margin-bottom: 5px;
}

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

.cart-item-quantity button {
    background-color: #dd0a17;
    color: #fff;
    border: none;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}
.cart-item-delete {
    background-color: transparent;
    border: none;
    color: #dd0a17;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.cart-item-delete:hover {
    color: #6d0909;
}
.cart-footer {
    padding: 20px;
    background-color: #f5f5f5;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}
.cart-buttons {
    display: flex;
    justify-content: column;
    gap: 10px;
}


.checkout-button, .clear-cart-button, .wait-button {
    width: 100%;
    background-color: #dd0a17;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 10px;
}

.clear-cart-button {
    background-color: #858383;
}

.wait-button {
    background-color: #e3c400;;
}

.checkout-button:hover, .clear-cart-button:hover, .wait-button:hover {
    background-color: #6d0909;
}

.clear-cart-button:hover {
    background-color: #6e6e6e;
}

.wait-button:hover {
    background-color: #c7ab00;
}

.shipping-options {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}
.shipping-options h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.shipping-option {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.shipping-option input[type="radio"] {
    margin-right: 10px;
}

.shipping-option label {
    font-size: 14px;
    color: #333;
}

@media (min-width: 650px) {
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
}
@media (min-width: 768px) {
    main {
        max-width: 768px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 768px;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-item, .cart-item, .modal-content {
    animation: fadeIn 0.5s ease-out;
}
@media (min-width: 1024px) {
    main {
        max-width: 1024px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1024px;
    }
}

