/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.no-display {
  display: none !important;
}

/* Header Styles */
.top-bar {
    background-color: #005573;
    color: #ffffff;
    text-align: center;
    padding: 8px 0;
}

.header {
    background-color: #0088B4;
    padding: 15px 0;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    max-width: 216px;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Main Container Styles */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Filter Styles */
.filters-container {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    padding: 10px 20px;
    background-color: #0088B4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #006d8f;
}

/* Category Filter Styles */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-link {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-link:hover {
    background-color: #e0e0e0;
}

.category-link.active {
    background-color: #0088B4;
    color: white;
}

/* Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

.product-info {
    padding: 20px;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
}

.product-title {
    font-size: 18px;
    color: #0088B4;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-title-link:hover .product-title {
    color: #006d8f;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-code, .product-unit {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.whatsapp-button i {
    margin-right: 8px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #fff;
    border: 1px solid #0088B4;
    color: #0088B4;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: #0088B4;
    color: #fff;
}

.pagination-link.active {
    background-color: #0088B4;
    color: #fff;
}

.pagination-link.prev,
.pagination-link.next {
    width: auto;
    padding: 0 15px;
}

/* Product Detail Styles */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

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

.additional-images {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail-image {
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-image:hover {
    border-color: #0088B4;
}

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

.thumbnail-image.no-image {
    opacity: 0.5;
}

.product-meta {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-meta p {
    margin-bottom: 10px;
    color: #666;
}

.product-meta strong {
    color: #333;
    min-width: 100px;
    display: inline-block;
}

.whatsapp-button.detail {
    max-width: 250px;
}

/* Footer Styles */
.footer {
    background-color: #0088B4;
    color: #ffffff;
    padding: 50px 0 0 0;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.footer h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    background-color: #005573;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.social-icons a {
    color: #ffffff;
    margin-left: 15px;
}

/* Mensaje de no productos */
.no-products {
    text-align: center;
    grid-column: 1/-1;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-image {
        width: 80px;
        height: 80px;
    }
}