:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #c4a674;
    --text-color: #333;
    --text-muted: #666;
    --light-bg: #f8f8f8;
    --border-color: #e2e2e2;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: white;
    overflow-x: hidden;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    box-sizing: border-box;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 2rem;
}

.search-form input[type="text"] {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form input[type="text"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.search-form button {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: #b3935e;
}

.breadcrumb {
    flex: 1;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem 1rem;
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
    }

    .breadcrumb {
        width: 100%;
        text-align: center;
    }

    .search-form {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .search-form input[type="text"] {
        flex: 1;
        width: auto;
    }
}

/* Index Page Styles */
.page-header {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-header p {
    margin: 0.75rem auto 0;
    max-width: 600px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-group select {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:hover {
    border-color: var(--accent-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(196, 166, 116, 0.1);
}

.sort-group {
    margin-left: auto;
}

@media (max-width: 768px) {
    .filters {
        padding: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .sort-group {
        margin-left: 0;
        width: 100%;
    }
}

/* Listings Page */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.filters-container {
    width: 100%;
}

.filters-content {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    flex-grow: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-group select,
.sort-select {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:hover,
.sort-select:hover {
    border-color: var(--accent-color);
}

.filter-group select:focus,
.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(196, 166, 116, 0.1);
}

.sort-group {
    min-width: 200px;
}

.sort-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .filters-content {
        flex-direction: column;
    }
    
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .sort-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .filters {
        padding: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.listings-container {
    margin-top: 2rem;
}

.listing-list {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.listing-title a {
    color: inherit;
    text-decoration: none;
}

.listing-title a:hover {
    color: #3498db;
}

.listing-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.listing-info a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.listing-info a:hover {
    text-decoration: underline;
}

.listing-price {
    color: #27ae60;
    font-weight: 600;
}

.listing-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.listing-status.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.listing-status.sold {
    background-color: #ffebee;
    color: #c62828;
}

.separator {
    color: #bbb;
    margin: 0 0.5rem;
}

.listing-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.listing-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.listing-details li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

.listing-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

.listing-meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.listing-date {
    color: #666;
}

.date-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.25rem;
}

.date-value {
    font-size: 0.85rem;
    white-space: nowrap;
}

.listing-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.listing-status.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.listing-status.sold {
    background-color: #ffebee;
    color: #c62828;
}

.listing-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
    background-color: var(--accent-color) !important;
    color: white !important;
    width: 100%;
    text-align: center;
}

.listing-cta:hover,
.listing-cta:focus,
.listing-cta:active {
    background-color: #b39563 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.listing-cta.disabled {
    background-color: var(--light-bg) !important;
    color: var(--text-muted) !important;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.listing-actions {
    margin-top: 1rem;
}

.listing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
    background-color: var(--accent-color) !important;
    color: white !important;
    width: 100%;
    text-align: center;
}

.listing-cta:hover,
.listing-cta:focus,
.listing-cta:active {
    background-color: #b39563 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: white !important;
    text-decoration: none !important;
}

.listing-cta.disabled {
    background-color: var(--light-bg) !important;
    color: var(--text-muted) !important;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.listing-actions {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .listing-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Watch Grid Styles */
.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.watch-grid.list-view {
    grid-template-columns: 1fr;
}

.watch-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.watch-image {
    aspect-ratio: 1;
    width: 100%;
    position: relative;
    background: var(--light-bg);
}

.watch-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.watch-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.watch-details h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.watch-brand {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.watch-family {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.watch-price {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.list-view .watch-card {
    flex-direction: row;
    align-items: flex-start;
}

.list-view .watch-image {
    width: 200px;
    flex-shrink: 0;
}

.list-view .watch-details {
    flex: 1;
}

@media (max-width: 768px) {
    .watch-grid {
        gap: 1rem;
    }

    .list-view .watch-card {
        flex-direction: column;
    }

    .list-view .watch-image {
        width: 100%;
    }
}

/* Families Section */
.families {
    margin: 2rem 1rem;
}

.families h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.family-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: var(--text-color);
}

.family-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.family-card.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px rgba(196, 166, 116, 0.2);
}

.family-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .family-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .family-card {
        padding: 0.5rem;
        min-height: 40px;
    }

    .family-card h3 {
        font-size: 0.9rem;
    }
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-options select,
.filters select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.sort-options select:hover,
.filters select:hover {
    border-color: var(--primary-color);
}

.sort-options select:focus,
.filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.layout-toggle {
    display: flex;
    gap: 0.25rem;
}

.layout-toggle a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.layout-toggle a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.layout-toggle a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .layout-toggle {
        justify-content: center;
    }

    .sort-options select,
    .filters select {
        width: 100%;
    }
}

/* Watch Gallery */
.watch-gallery {
    margin: 0 0 2rem 0;
}

.swiper {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-swiper {
    max-height: 600px;
    aspect-ratio: 1;
}

.swiper-slide {
    padding: 1rem;
    box-sizing: border-box;
}

.swiper-slide img {
    max-height: 600px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbs-swiper {
    padding: 10px 0;
    height: 100px;
}

.thumbs-swiper .swiper-slide {
    width: 100px;
    height: 100px;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .watch-gallery {
        margin: 0;
        width: 85vw;
    }

    .swiper {
        border-radius: 0;
    }

    .main-swiper {
        max-height: 400px;
        aspect-ratio: 1;
    }

    .swiper-slide {
        padding: 0;
    }

    .swiper-slide img {
        max-height: 400px;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .thumbs-swiper {
        padding: 10px 1rem;
        height: 80px;
    }

    .thumbs-swiper .swiper-slide {
        width: 80px;
        height: 80px;
        padding: 0;
    }
}

/* Layout and Controls */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
}

/* View Controls */
.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-options button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-options button:hover {
    background: var(--light-bg);
}

.view-options button.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Controls Container */
.controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 150px;
}

.layout-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.layout-toggle a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.layout-toggle a:hover {
    background: var(--light-bg);
}

.layout-toggle a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        flex: 1;
    }

    .layout-toggle {
        width: 100%;
        margin-left: 0;
    }

    .layout-toggle a {
        flex: 1;
        text-align: center;
    }
}

/* Watch List Styles */
.watch-list {
    padding: 2rem;
}

.watch-list-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: white;
}

.watch-list-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.watch-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.watch-list-info {
    flex: 1;
}

.watch-list-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.watch-list-info p {
    margin: 0.25rem 0;
    color: var(--secondary-color);
}

/* Watch List Controls */
.watch-list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.watch-list-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 150px;
}

.watch-list-controls .layout-toggle {
    display: flex;
    gap: 0.5rem;
}

.watch-list-controls .layout-toggle button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.watch-list-controls .layout-toggle button:hover {
    background: var(--light-bg);
}

.watch-list-controls .layout-toggle button.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .watch-list-controls {
        flex-direction: column;
    }

    .watch-list-controls select {
        width: 100%;
    }

    .watch-list-controls .layout-toggle {
        width: 100%;
    }

    .watch-list-controls .layout-toggle button {
        flex: 1;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--light-bg);
}

.page-link.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.page-ellipsis {
    padding: 0.5rem;
    color: var(--text-color);
}

/* Watch Detail Page Styles */
.watch-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.watch-header {
    margin-bottom: 2rem;
    text-align: center;
}

.watch-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.watch-header .reference {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.watch-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.watch-gallery {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 2rem;
}

.description {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 2rem;
}

.watch-info {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.watch-info section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.watch-info h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.description h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.features li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.2em;
}

.specifications dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
    font-size: 0.875rem;
}

.specifications dt {
    font-weight: 500;
    color: var(--text-muted);
}

.specifications dd {
    margin: 0;
    color: var(--text-color);
}

@media (max-width: 1024px) {
    .watch-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .watch-gallery,
    .watch-info,
    .description {
        grid-column: 1;
        grid-row: auto;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .watch-details {
        padding: 1rem;
    }

    .watch-header h1 {
        font-size: 2rem;
    }

    .watch-info section {
        padding: 1.5rem;
    }
}

/* Swiper Styles */
.swiper {
    width: 100%;
    max-width: 100vw;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-swiper {
    aspect-ratio: 4/3;
    max-height: 600px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 600px;
    max-width: 100%;
}

.thumbs-swiper {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.thumbs-swiper .swiper-slide {
    width: 100px;
    height: 100px;
    opacity: 0.4;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

.thumbs-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specifications */
.specifications {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.specifications dl {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 0.75rem 2rem;
    margin: 0;
}

.specifications dt {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.specifications dd {
    margin: 0;
    color: var(--text-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.specifications .movement-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specifications .movement-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.specifications .movement-features li:last-child {
    margin-bottom: 0;
}

.specifications .movement-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1em;
    line-height: 1.4;
}

/* Features */
.features {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.features li:last-child {
    margin-bottom: 0;
}

.features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2em;
    line-height: 1.5;
}

/* Description */
.description-content {
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-line;
}

.features-list {
    margin-top: 2rem;
}

.features-list h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 0.5rem;
}

/* Market Data */
.market-data {
    margin-top: 2rem;
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.listing-image-container {
    aspect-ratio: 1;
    width: 100%;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
}

.listing-title-wrapper {
    margin-bottom: 1rem;
    background: white;
}

.listing-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    background: white;
}

.listing-title:hover {
    color: var(--accent-color);
    text-decoration: none;
    background: white;
}

.listing-info {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9375rem;
    background: white;
}

.listing-info .separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.listing-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    background: white;
}

.listing-info a:hover {
    text-decoration: underline;
    background: white;
}

.listing-info .listing-price {
    color: var(--success);
    font-weight: 500;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    font-family: var(--font-heading);
    background: white;
}

.listing-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    text-transform: capitalize;
}

.listing-status.active {
    background-color: var(--success-light);
    color: var(--success);
}

.listing-status.sold {
    background-color: var(--danger-light);
    color: var(--danger);
}

.listing-status.expired,
.listing-status.removed {
    background-color: var(--warning-light);
    color: var(--warning);
}

.listing-meta a {
    color: var(--text-muted);
    text-decoration: none;
    background: white;
}

.listing-meta a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .filters {
        padding: 1rem;
    }

    .listing-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .listing-content {
        padding: 1rem;
    }

    .listing-title {
        font-size: 1.125rem;
    }

    .listing-price {
        font-size: 1.25rem;
    }
}

/* Brand Page Styles */
.brand-header {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.brand-info {
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.brand-logo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-details {
    flex: 1;
}

.brand-details h1 {
    margin: 0 0 1rem 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.brand-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    max-width: 800px;
    margin-bottom: 1rem;
}

.brand-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.brand-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .brand-header {
        padding: 1.5rem;
    }

    .brand-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .brand-logo {
        width: 120px;
        height: 120px;
    }

    .brand-details h1 {
        font-size: 2rem;
    }

    .brand-description {
        font-size: 1rem;
    }
}

/* Brand Stats */
.brand-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .brand-stats {
        justify-content: center;
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* Search Box */
.search-box {
    margin-left: auto;
    max-width: 300px;
}

.search-box form {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-color);
    min-width: 200px;
}

.search-box button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
        margin: 1rem 0 0;
    }
}

/* Search Results */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.page-header .suggestion {
    margin-top: 1rem;
    font-size: 1rem;
}

.page-header .suggestion a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-header .suggestion a:hover {
    text-decoration: underline;
}

.watch-list-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-group select {
    min-width: 160px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    font-size: 0.875rem;
}

.layout-toggle {
    display: flex;
    gap: 0.5rem;
}

.layout-toggle button {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.layout-toggle button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.layout-toggle button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.layout-toggle button svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .watch-list-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select {
        width: 100%;
    }

    .layout-toggle {
        justify-content: center;
    }
}

.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Hide family group by default */
#familyGroup {
    display: none;
}

#familyGroup.visible {
    display: flex;
}

.listing-details {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    list-style-type: disc;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: white;
}

.listing-details .detail-item {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.listing-details .detail-item:last-child {
    margin-bottom: 0;
}
