@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;
}

.category-nav {
    background-color: #fff;
    padding: 40px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-top: 50px;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 999;
}

.category-slider {
    display: inline-flex;
    padding: 0 15px;
}

.category-item {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-item:hover, .category-item.active {
    background-color: #dd0a17;
    color: #fff;
}

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

.search-section {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-section input {
    width: 100%;
    max-width: 480px;
    padding: 10px 15px;
    border: none;
    border-radius: 10px 0 0 10px;
    background-color: #dd0a17;
    color: #fff;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

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

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

.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;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: scale(1.05);
}
.product-image {
    width: 100%;
    height: 150px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.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: 12.5px;
    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;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 8px;
}

.pagination-btn {
    display: flex;
    font-family:'Montserrat', sans-serif;
    align-items: center;
    background-color: #dd0a17;
    color: white;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}
.pagination-btn .icon1 {
    width: 16px;  /* Ajusta el tamaño del SVG */
    height: 16px;
    margin-right: 8px;  /* Espacio entre el icono y el texto */
}  
.pagination-btn .icon2 {
    width: 16px;  /* Ajusta el tamaño del SVG */
    height: 16px;
    margin-left: 8px;  /* Espacio entre el icono y el texto */
}  
.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;
}
.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;
}
.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: #fff;
}

.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;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}


.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;
}
@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: 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;
    }
}

@media (min-width: 1024px) {
    main {
        max-width: 1024px;
    }

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

@media (max-width: 468px) { 
    .modal-info .product-category {
        font-size: 12px;
        color: #858383;
        margin-bottom: 5px;
    }
}


/* Hide scrollbar for Chrome, Safari and Opera */
.category-nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.category-nav {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
