/* CSS FOR REFACCIONES CATALOG AND PRODUCT DETAIL PAGES */

/* Catalog Layout */
.catalog-sec { padding: 60px 0 80px; }
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.catalog-header h1 { color: var(--primary-dark); font-size: 2.2rem; margin: 0; }
.catalog-filters { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.catalog-filters input, .catalog-filters select { padding: 10px 15px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; color: var(--secondary); background: white; }
.catalog-filters input:focus, .catalog-filters select:focus { outline: none; border-color: var(--accent); }
.catalog-search { position: relative; }
.catalog-search svg { position: absolute; right: 10px; top: 12px; color: #888; width: 18px; height: 18px; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 1px solid #eee; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.product-img-wrap { position: relative; width: 100%; height: 200px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; }
.product-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-brand { color: #666; font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; font-weight: bold; }
.product-title { color: var(--primary-dark); font-size: 1.1rem; font-weight: bold; margin: 0 0 15px; line-height: 1.4; flex: 1; }
.product-action { margin-top: auto; border-top: 1px solid #eee; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; }
.product-action span { color: var(--accent); font-weight: bold; }
.btn-small { background: var(--primary); color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background 0.3s; font-size: 0.9rem; }
.product-card:hover .btn-small { background: var(--accent); }

/* Empty State */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: white; border-radius: 12px; border: 1px dashed #ccc; }
.empty-state p { font-size: 1.2rem; color: #666; margin-bottom: 20px; }

/* PRODUCT DETAIL PAGE */
.prod-detail-sec { padding: 60px 0 80px; }
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; color: #666; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media(max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }

.pd-images { background: white; border-radius: 12px; padding: 40px; border: 1px solid #eee; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.pd-images img { max-width: 100%; max-height: 400px; object-fit: contain; }

.pd-info h1 { font-size: 2.2rem; color: var(--primary-dark); margin: 0 0 10px; line-height: 1.2; }
.pd-brand { display: inline-block; background: #eee; color: #333; padding: 4px 10px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; margin-bottom: 20px; }
.pd-stock { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: bold; margin-bottom: 30px; }
.pd-stock svg { width: 20px; height: 20px; }

.pd-cta { background: #f8f9fa; padding: 30px; border-radius: 12px; border: 1px solid #eee; margin-bottom: 30px; }
.pd-cta p { margin: 0 0 20px; color: #555; }
.btn-quote { display: block; width: 100%; text-align: center; background: var(--primary); color: white; padding: 15px; font-size: 1.2rem; font-weight: bold; border-radius: 8px; text-decoration: none; transition: 0.3s; }
.btn-quote:hover { background: var(--accent); }

/* Accordions */
.pd-accordion { border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; overflow: hidden; background: white; }
.pd-acc-header { padding: 15px 20px; background: #f8f9fa; font-weight: bold; color: var(--primary-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.pd-acc-header svg { width: 20px; height: 20px; transition: transform 0.3s; }
.pd-accordion.active .pd-acc-header svg { transform: rotate(180deg); }
.pd-acc-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.pd-accordion.active .pd-acc-content { padding: 20px; max-height: 1000px; border-top: 1px solid #eee; }

.compat-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compat-list li { display: flex; align-items: center; gap: 8px; color: #555; font-size: 0.95rem; }
.compat-list li svg { color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
@media(max-width: 600px) { .compat-list { grid-template-columns: 1fr; } }

.ficha-tecnica { color: #555; line-height: 1.6; margin: 0; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.specs-table th, .specs-table td { padding: 12px 15px; border-bottom: 1px solid #eee; text-align: left; }
.specs-table th { width: 30%; color: var(--primary); font-weight: bold; background: #fafafa; }
