/* General styles for pages */
.product-detail-page { padding: 40px 0; }
.breadcrumbs { margin-bottom: 20px; font-size: 0.9rem; color: #666; }
.breadcrumbs a { text-decoration: none; color: var(--color-primary); }
.breadcrumbs span { color: #333; font-weight: 600; }

.product-detail-layout { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.product-gallery { flex: 1; min-width: 300px; }
.img-zoom-container { border: 1px solid #eee; border-radius: var(--border-radius); overflow: hidden; margin-bottom: 15px; }
.img-zoom-container img { width: 100%; height: auto; display: block; }
.thumbnail-images { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.thumbnail-images img { width: 80px; height: 80px; object-fit: cover; border: 2px solid transparent; border-radius: var(--border-radius); cursor: pointer; transition: border-color 0.2s ease; }
.thumbnail-images img.active, .thumbnail-images img:hover { border-color: var(--color-primary); }

.product-info { flex: 1; min-width: 300px; }
.product-title { font-size: 2.2rem; font-weight: 800; color: var(--color-dark); margin-bottom: 10px; line-height: 1.2; }
.product-short-description { font-size: 1.1rem; color: #555; margin-bottom: 20px; }
.product-info .btn-block { display: block; width: 100%; margin-bottom: 30px; }

.product-specs { margin-bottom: 30px; }
.product-specs h3 { font-size: 1.5rem; color: var(--color-dark); margin-bottom: 15px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 1rem; }
.specs-table td:first-child { font-weight: 600; color: var(--color-dark); width: 60%; }
.specs-table td:last-child { text-align: right; color: #555; }

.product-docs { margin-top: 30px; }
.product-docs .btn { width: 100%; }

.product-long-description { background-color: var(--color-gray); padding: 30px; border-radius: var(--border-radius); margin-top: 40px; }
.product-long-description h2 { font-size: 2rem; color: var(--color-dark); margin-bottom: 20px; }
.product-long-description ul { list-style: none; padding-left: 0; }
.product-long-description ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.product-long-description ul li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: #fefefe; margin: 15% auto; padding: 30px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: var(--border-radius); position: relative; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
.close-btn:hover, .close-btn:focus { color: #000; text-decoration: none; cursor: pointer; }
.docs-list { list-style: none; padding: 0; }
.docs-list li { margin-bottom: 10px; }
.docs-list li a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.docs-list li a:hover { text-decoration: underline; }

/* Category Page Styles */
.category-header { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-light); overflow: hidden; z-index: 5; }
.category-header-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.category-header-background img {
    width: 100%;
    height: 110%; /* Aumentamos la altura para que haya espacio para el paneo */
    object-fit: cover;
    animation: slow-pan-up 15s infinite alternate ease-in-out;
}
.category-header-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 2; }
.category-header .container { position: relative; z-index: 3; }
.category-header h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.category-header p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.section-products-listing { padding: 60px 0; }
.product-listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-listing-card { background-color: var(--color-light); border-radius: var(--border-radius); box-shadow: 0 5px 25px rgba(0,0,0,0.05); text-decoration: none; color: var(--color-text); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-listing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.product-listing-image { width: 100%; height: 250px; overflow: hidden; border-bottom: 1px solid #eee; }
.product-listing-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-listing-card:hover .product-listing-image img { transform: scale(1.05); }
.product-listing-content { padding: 20px; }
.product-listing-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; }
.product-listing-content p { font-size: 1rem; color: #555; margin-bottom: 15px; }
.product-listing-content .btn-details { display: inline-block; color: var(--color-primary); font-weight: 600; text-decoration: none; }
.product-listing-content .btn-details::after { content: '→'; margin-left: 5px; transition: margin-left 0.3s ease; }
.product-listing-content .btn-details:hover::after { margin-left: 10px; }

/* Estilos para la tarjeta de texto en la cuadrícula de productos */
.product-listing-card.text-card {
    background-color: var(--color-gray); /* Un fondo diferente para distinguirla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 2rem;
}

.product-listing-card.text-card .product-listing-content {
    padding: 0;
}

.product-listing-card.text-card h3 {
    color: var(--color-primary); /* Título en color primario */
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.product-listing-card.text-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* ======== PRODUCT NAVIGATION ======== */
.product-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.product-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.product-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .product-detail-layout { flex-direction: column; }
    .product-title { font-size: 2rem; }
    .product-info .btn-block { margin-bottom: 20px; }
    .product-long-description { padding: 20px; }
    .product-long-description h2 { font-size: 1.8rem; }
    .modal-content { width: 95%; margin: 10% auto; }
    .category-header { height: 200px; }
    .category-header h1 { font-size: 2.2rem; }
    .category-header p { font-size: 0.9rem; }
    .product-listing-image { height: 200px; }
    .product-listing-content h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .product-detail-page { padding: 20px 0; }
    .product-detail-layout { gap: 20px; }
    .product-title { font-size: 1.8rem; }
    .product-short-description { font-size: 1rem; }
    .product-specs h3 { font-size: 1.3rem; }
    .specs-table td { font-size: 0.9rem; }
    .product-long-description h2 { font-size: 1.5rem; }
    .thumbnail-images img { width: 60px; height: 60px; }
}

/* ======== PRODUCT TRUST SIGNALS ======== */
.product-trust-signals {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--color-gray);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e0e0e0;
}
.trust-signal {
    display: inline-block;
    margin: 0 1rem;
    text-align: center;
    color: var(--color-text);
}
.trust-signal-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}
.trust-signal-text {
    font-weight: 600;
}
.trust-signal-label {
    font-size: 0.85rem;
    color: #666;
}

@keyframes slow-pan-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10%);
    }
}
