/* ========================================
   Base
======================================== */

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #111111;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    margin: 0 0 20px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   Layout
======================================== */

.cs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.cs-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

.cs-main {
    width: 100%;
}

/* ========================================
   Toolbar
======================================== */

.cs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#csSort {
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* ========================================
   Table
======================================== */

.cs-table-wrapper {
    overflow-x: auto;
}

.cs-results-table {
    width: 100%;
    border-collapse: collapse;
}

.cs-results-table th,
.cs-results-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
    font-size: 14px;
}

.cs-results-table th {
    font-weight: 600;
    background: #fafafa;
}

.cs-results-table tr:hover {
    background: #fafafa;
}

.cs-price-cell {
    font-weight: 600;
    color: #000;
}

/* ========================================
   Buttons
======================================== */

.cs-view-button,
.cs-cta-button,
.cs-compare-button {
    display: inline-block;
    padding: 10px 18px;
    background: #111111;
    color: #ffffff;
    border-radius: 30px;
    font-size: 13px;
    transition: all 0.25s ease;
}

.cs-view-button:hover,
.cs-cta-button:hover,
.cs-compare-button:hover {
    background: #000000;
}

/* Floating Compare Button */

.cs-compare-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

/* ========================================
   Filters
======================================== */

.cs-filters {
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 20px;
}

.cs-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cs-clear-btn {
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    color: #777;
}

.cs-filter-section {
    margin-bottom: 30px;
}

.cs-filter-toggle {
    font-weight: 600;
    margin-bottom: 12px;
}

.cs-shape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cs-shape-item {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cs-shape-item:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.cs-shape-item img {
    max-width: 40px;
    margin-bottom: 8px;
}

.cs-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    font-size: 13px;
}

/* ========================================
   Single Page
======================================== */

.cs-single-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cs-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cs-single-image img {
    width: 100%;
    border-radius: 12px;
}

.cs-single-price {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cs-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cs-spec-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

/* ========================================
   Compare Page
======================================== */

.cs-compare-container {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

.cs-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.cs-compare-table th,
.cs-compare-table td {
    padding: 16px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.cs-compare-table th {
    background: #fafafa;
}

.cs-remove-link {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.cs-clear-compare {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

/* ========================================
   Loading
======================================== */

.cs-loading {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ========================================
   Empty State
======================================== */

.cs-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}
