/* --- Global Styles & Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; color: #2c3e50; }
a { color: #007bff; text-decoration: none; transition: color 0.3s; }
a:hover { color: #0056b3; }
.btn { display: inline-block; padding: 12px 25px; margin: 5px; border-radius: 5px; text-decoration: none; color: white; font-weight: bold; cursor: pointer; border: none; transition: background-color 0.3s, transform 0.2s; }
button.btn { font-family: inherit; font-size: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background-color: #007bff; } .btn-primary:hover { background-color: #0056b3; }
.btn-secondary { background-color: #6c757d; } .btn-secondary:hover { background-color: #5a6268; }
.btn-success { background-color: #28a745; } .btn-success:hover { background-color: #218838; }

/* --- Header & Navigation (Static Version) --- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}
.site-header .logo { display: block; }
.site-header .logo img {
    max-height: 60px;
    width: auto;
    display: block;
}
.main-nav a { margin: 0 15px; font-size: 1.1em; color: #343a40; }
.header-actions a, .header-actions button, .header-actions span { margin-left: 15px; }

/* --- Footer --- */
.site-footer { background-color: #343a40; color: #f8f9fa; padding: 40px 20px; margin-top: 50px; text-align: center; }
.site-footer a { color: #00c3ff; }
/* --- NEW: Style for the footer tagline --- */
.site-footer .tagline {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* --- Hero Section (Homepage) --- */
.hero { height: 60vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-content { background-color: rgba(0,0,0,0.5); padding: 40px; border-radius: 10px; }
.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Section Title --- */
.section-title { text-align: center; margin: 50px 0 30px 0; font-size: 2.5em; }

/* --- Inventory Page & Slab Cards --- */
.inventory-container { display: flex; gap: 30px; }
.filter-sidebar { width: 250px; flex-shrink: 0; }
.filter-sidebar h3 { margin-top: 0; } .filter-group { margin-bottom: 20px; } .filter-group label { display: block; margin-bottom: 5px; }
.slab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; width: 100%; }
.slab-card { background-color: #fff; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.slab-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.slab-card img { width: 100%; height: 200px; object-fit: cover; }
.slab-card-content { padding: 15px; } .slab-card-content h3 { margin: 0 0 10px 0; font-size: 1.4em; } .slab-card-content p { margin: 5px 0; }

/* --- Slab Detail Page --- */
.slab-detail-container { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 30px; }
@media (min-width: 992px) { .slab-detail-container { grid-template-columns: 1fr 1fr; } }
.slab-gallery .main-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; }
.thumbnail-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbnail-strip img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; }
.thumbnail-strip img:hover, .thumbnail-strip img.active { border-color: #007bff; }
.slab-info h1 { margin-top: 0; } .slab-info .price { font-size: 2em; font-weight: bold; color: #28a745; margin-bottom: 15px; }
.spec-list { list-style: none; padding: 0; margin: 20px 0; } .spec-list li { padding: 8px 0; border-bottom: 1px solid #eee; } .spec-list strong { color: #333; min-width: 140px; display: inline-block; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0; } .tag-list li { background-color: #e9ecef; padding: 5px 12px; border-radius: 15px; font-size: 0.9em; }

/* --- Static & Educational Pages --- */
.static-page-header { text-align: center; padding: 40px 20px; background-color: #e9ecef; border-radius: 8px; margin-bottom: 30px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.content-card { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #dee2e6; } .content-card h3 { margin-top: 0; }

/* --- Modal Styles --- */
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); }
.modal-content { position: fixed; z-index: 1001; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 500px; background-color: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); padding: 30px 40px; animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal-close { position: absolute; top: 10px; right: 20px; color: #6c757d; font-size: 35px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: #343a40; }
.modal-content h2 { text-align: center; margin-top: 0; margin-bottom: 25px; }
.modal-form-group { margin-bottom: 20px; } .modal-form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.modal-form-group input, .modal-form-group textarea { width: 100%; padding: 12px; box-sizing: border-box; border: 1px solid #ced4da; border-radius: 5px; font-size: 16px; font-family: inherit; }
.modal-form-group textarea { resize: vertical; min-height: 120px; }
.modal-error-message, .modal-success-message { display: none; padding: 15px; border-radius: 4px; text-align: center; margin-bottom: 15px; }
.modal-error-message { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.modal-success-message { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
#loginModal .modal-content { background-image: url('/assets/img/hero-background.jpg'); background-size: cover; background-position: center; color: white; }
#loginModal .modal-form-group input { background-color: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); color: white; }
#loginModal .modal-form-group input::placeholder { color: #ddd; }
#loginModal .modal-signup-link a { color: #00c3ff; }

/* --- Collapsible Filter Section --- */
.filter-group.collapsible .filter-group-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.filter-group.collapsible .filter-group-header h4 { margin: 0; }
.filter-group.collapsible .toggle-icon { font-size: 1.5em; font-weight: bold; transition: transform 0.3s ease; }
.filter-group.collapsible .filter-explanation { font-size: 0.9em; color: #6c757d; margin-top: 5px; margin-bottom: 10px; padding-bottom: 0; border-bottom: none; }
.collapsible-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-out; }
.collapsible-content > div { overflow: hidden; }
.filter-group.collapsible.is-active .collapsible-content { grid-template-rows: 1fr; border-top: 1px solid #eee; padding-top: 10px; }
.filter-group.collapsible.is-active .toggle-icon { transform: rotate(45deg); }