/* Product Showroom Styles */

/* Category Navigation */
.category-nav { background: var(--gray-light); padding: 2rem 5%; }
.category-tabs { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.category-tab { padding: 0.75rem 1.5rem; background: var(--white); border: 2px solid transparent; border-radius: 30px; font-weight: 500; color: var(--navy-primary); cursor: pointer; transition: all 0.3s ease; text-decoration: none; font-size: 0.9rem; }
.category-tab:hover, .category-tab.active { background: var(--navy-primary); color: var(--white); border-color: var(--navy-primary); }

/* Product Section */
.product-section { padding: 5rem 5%; }
.product-section.alt-bg { background: var(--gray-light); }

/* Product Grid */
.product-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* Product Card */
.product-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(30,58,95,0.15); }
.product-card.featured { border: 2px solid var(--teal-accent); }

/* Product Image */
.product-image { height: auto; min-height: 220px; max-height: 300px; overflow: hidden; background: #f5f7fa; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.product-image img { width: 100%; height: auto; object-fit: contain; max-height: 280px; }

/* Product Content */
.product-content { padding: 1.25rem 1.5rem; }
.product-badge { display: inline-block; background: linear-gradient(135deg, var(--teal-accent), var(--navy-light)); color: var(--white); padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; width: fit-content; }
.product-content h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy-deep); margin-bottom: 1rem; line-height: 1.3; }

/* Product Specs */
.product-specs { }
.product-specs-detailed { }
.spec-section { margin-bottom: 0.75rem; }
.spec-section:last-child { margin-bottom: 0; }
.spec-section-title { font-size: 0.65rem; font-weight: 700; color: var(--teal-accent); letter-spacing: 0.5px; margin-bottom: 0.2rem; border-bottom: 1px solid rgba(78,205,196,0.3); padding-bottom: 0.15rem; text-transform: uppercase; }
.spec-row { display: flex; justify-content: space-between; padding: 0.25rem 0; border-bottom: 1px solid #E2E8F0; font-size: 0.78rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--gray-dark); font-weight: 500; }
.spec-row span:last-child { color: var(--navy-deep); font-weight: 600; text-align: right; max-width: 58%; }

/* Placeholder Content */
.placeholder-content { max-width: 1400px; margin: 0 auto; text-align: center; padding: 3rem; background: rgba(78,205,196,0.05); border-radius: 15px; border: 2px dashed rgba(78,205,196,0.3); }
.placeholder-content p { color: var(--gray-dark); font-style: italic; }

/* Builder Table & Filters */
.table-container { max-width: 1400px; margin: 0 auto; overflow-x: auto; }

.table-filters {
    max-width: 1400px;
    margin: 2rem auto 1rem auto;
    background: var(--white);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #E2E8F0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 0.75rem;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
}

.filter-group input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group input:focus {
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 2px rgba(78,205,196,0.25);
}

.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: var(--navy-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    background: var(--navy-primary);
    color: var(--white);
    border-color: var(--navy-primary);
}

/* Gallery Grid for Vessel Photos */
.gallery-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(30,58,95,0.2); }
.gallery-item.main-image { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.gallery-item.main-image img { min-height: 380px; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 1rem 0.75rem 0.75rem; font-size: 0.8rem; font-weight: 500; }

@media (max-width: 1200px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-item.main-image { grid-column: span 2; } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item.main-image { grid-column: span 2; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-item.main-image { grid-column: span 1; grid-row: span 1; } .gallery-item.main-image img { min-height: 250px; } }
.builder-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.builder-table thead { background: linear-gradient(135deg, var(--navy-primary), var(--navy-light)); }
.builder-table th { color: var(--white); padding: 1rem 0.75rem; text-align: left; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.builder-table td { padding: 0.75rem; border-bottom: 1px solid #E2E8F0; font-size: 0.85rem; color: var(--navy-deep); }
.builder-table tbody tr:hover { background: rgba(78,205,196,0.05); }
.builder-table tbody tr:last-child td { border-bottom: none; }
.builder-table td:first-child { font-weight: 600; color: var(--navy-primary); }

/* Responsive */
@media (max-width: 1200px) { 
    .product-grid { grid-template-columns: 1fr; } 
    .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) { 
    .category-tabs { gap: 0.5rem; } 
    .category-tab { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .product-content h3 { font-size: 1.1rem; }
    .spec-row { font-size: 0.8rem; }
    .builder-table th, .builder-table td { padding: 0.5rem; font-size: 0.75rem; }
    .filter-row { grid-template-columns: 1fr; }
    .table-filters { padding: 1rem; }
}
