/* ... Pega aquí TODO tu archivo style.css ... */
/* Ejemplo de cómo debería empezar: */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
/* ... Y así sucesivamente con todo tu CSS ... */

.logo-container {
    display: flex;
    align-items: center;
}

#logo {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin: 0;
    font-size: 1.8em;
}

#category-nav {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

#category-nav button {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

#category-nav button:hover {
    background-color: #d3d9df;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#category-nav button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

#current-category-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-image-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.15em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    min-height: 40px; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-rating {
    color: #f8b400;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.product-price {
    font-size: 1.2em;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}
.product-price-btc {
    font-size: 1em;
    font-weight: 500;
    color: #f2a900;
    margin-bottom: 15px;
}
.currency {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
}

.consult-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

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

#loading-indicator {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
    color: #555;
}
#error-message {
    text-align: center;
    padding: 20px;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 800px;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: #343a40;
    color: #f8f9fa;
    margin-top: 40px;
    font-size: 0.9em;
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center; 
    justify-content: center;
}

.modal.active {
    display: flex; 
}

.modal-content {
    background-color: #fff;
    margin: auto; 
    padding: 25px 30px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 600px; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.product-details-modal-style .modal-content {
    max-width: 750px;
    text-align: left;
}

.close-modal-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal-button:hover,
.close-modal-button:focus {
    color: #333;
    text-decoration: none;
}

.modal h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.modal p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}
#consultation-product-intro strong {
    color: #007bff; 
}

.consultation-modal-style #consultation-message-container {
    background-color: #f8f9fa; 
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.consultation-modal-style #consultation-message-container p {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #495057;
}

.consultation-modal-style #copy-paste-message-text {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical; 
    min-height: 80px;
    background-color: #fff;
}

.modal-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    align-items: center;
}

.contact-button {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 80%; 
    max-width: 300px;
    box-sizing: border-box;
}
.contact-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.contact-button.signal { background-color: #3a76f0; }
.contact-button.simplex { background-color: #151A1F; }


#modal-product-image-container {
    text-align: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}
#modal-product-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 4px;
}

#modal-product-title {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.product-details-modal-style .star-rating {
    font-size: 1.1em;
    color: #f8b400;
    margin-bottom: 15px;
}

.product-details-modal-style .modal-product-price-usd,
.product-details-modal-style .modal-product-price-btc {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-details-modal-style .modal-product-price-usd span,
.product-details-modal-style .modal-product-price-btc span {
    color: #28a745;
}

#modal-product-specs-container,
#modal-product-description-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 5px;
}
#modal-product-specs-container h3,
#modal-product-description-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
#modal-product-specs-list {
    list-style: none;
    padding-left: 0;
}
#modal-product-specs-list li {
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #444;
}
#modal-product-specs-list li strong {
    color: #222;
}

#modal-product-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: #555;
}

.ebay-link-button,
.consult-button-from-details {
    display: block;
    width: calc(100% - 40px); 
    max-width: 320px;
    margin: 20px auto 10px auto;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.ebay-link-button {
    background-color: #e53238; 
    color: white;
    border: none;
}
.ebay-link-button:hover {
    background-color: #c02a2f;
    transform: translateY(-1px);
}

.consult-button-from-details {
    background-color: #007bff; 
    color: white;
    border: none;
}
.consult-button-from-details:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    header h1 {
        margin-top: 10px;
        margin-bottom: 15px;
        text-align: center;
    }
    #category-nav {
        justify-content: center; 
    }
    #category-nav button {
        padding: 7px 12px;
        font-size: 0.85em;
        margin: 3px;
    }
    #current-category-title {
        font-size: 1.8em;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .product-info h3 {
        font-size: 1.05em;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .contact-button {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .product-card-image-wrapper {
        height: 200px; 
    }
    #current-category-title {
        font-size: 1.6em;
    }
    header h1 {
        font-size: 1.5em;
    }
    #logo {
        height: 40px;
    }
    .modal-content {
        max-height: 85vh;
    }
    .ebay-link-button,
    .consult-button-from-details {
        padding: 10px;
        font-size: 0.9em;
    }
}
