/* Daunt Books-inspired Design for Days Books & Records */

/* Import Google Fonts for elegant typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --background-light: #fffff0;
    --background-white: #ffffff;
    --border-color: #ecf0f1;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 125px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive hero buttons for three buttons */
@media (max-width: 768px) {
    .hero-buttons {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        min-width: 200px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: #f39c12;
    color: white;
    border-color: #f39c12;
}

.btn-tertiary:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-essential {
    background-color: #95a5a6;
    color: white;
    border-color: #95a5a6;
}

.btn-essential:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Intro Section */
.intro-section {
    margin-bottom: 36px;
}

.intro-section p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Sections */
.featured-section {
    margin-bottom: 60px;
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carousel Layout */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 50px;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.carousel-item {
    flex: 0 0 280px;
    min-width: 280px;
    background: var(--background-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.carousel-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: var(--transition);
}

.carousel-item-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Cover Image Styles */
.cover-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

.carousel-item:hover .cover-image {
    transform: scale(1.05);
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

/* Book Cover Styles - Long/Rectangular */
.book-cover {
    flex: 0 0 200px;
    min-width: 200px;
    height: 300px;
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

.book-cover .cover-image-container {
    height: 300px;
}

/* Record Cover Styles - Square */
.record-cover {
    flex: 0 0 250px;
    min-width: 250px;
    height: 250px;
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

.record-cover .cover-image-container {
    height: 250px;
}

/* Placeholder Styles */
.placeholder-cover {
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

.book-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

.record-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

/* News Cover Styles */
.news-cover .cover-image-container {
    border: 2px solid #f8f9fa;
}

.news-placeholder {
    background-color: #fff3cd;
    border: 2px dashed #ffc107;
    box-shadow: 7px 14px 11px -10px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
    left: -20px;
}

.carousel-btn-next {
    right: -20px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Grid Layout (fallback) */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles */
.item-card {
    background: var(--background-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

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

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 320px;
    background-color: var(--background-light);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-card:hover .item-image {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.item-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 30px 25px;
}

.item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 600;
}

.item-author,
.item-artist {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-style: normal;
    font-weight: 400;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
}

.card-tags {
    margin-bottom: 1rem;
}

.item-genre {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sub-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sub-genre-tag {
    background-color: var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.condition-badge {
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 50px;
    text-align: center;
    height: 24px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.condition-new {
    background-color: #d5f4e6;
    color: #27ae60;
}

.condition-used {
    background-color: #fef9e7;
    color: #f39c12;
}

/* Format Badge Styles */
.format-badge {
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 50px;
    text-align: center;
    height: 24px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

/* Ensure format badges are visible in cart */
.cart-item-details .format-badge {
    margin-left: 4px;
    margin-right: 8px;
}

/* News Page Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--background-white);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.news-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.news-content {
    padding: 24px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.news-date {
    color: var(--accent-color);
    font-weight: 500;
}

.news-author {
    color: var(--text-secondary);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* News Detail Page Styles */
.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.news-detail-date {
    color: var(--accent-color);
    font-weight: 500;
}

.news-detail-author {
    color: var(--text-secondary);
}

.news-detail-image-wrapper {
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.news-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body {
    margin-bottom: 60px;
    line-height: 1.8;
    color: var(--text-primary);
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-detail-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.related-articles-section {
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-articles-section h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-article-item {
    background: var(--background-white);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.related-article-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-item:hover .related-article-cover {
    transform: scale(1.05);
}

.related-article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    padding: 15px;
}

.related-article-info {
    padding: 20px;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-article-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.news-detail-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.pagination-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Home Page News Grid - 3 columns in a row */
.featured-section .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
}

/* Responsive News Grid */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .featured-section .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-detail-title {
        font-size: 2rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.format-lp {
    background-color: #e8f4fd;
    color: #3498db;
}

.format-singles {
    background-color: #fdf2f8;
    color: #e91e63;
}

.format-7" {
    background-color: #f0f9ff;
    color: #0ea5e9;
}

.format-10" {
    background-color: #f0fdf4;
    color: #16a34a;
}

.format-12" {
    background-color: #fef3c7;
    color: #d97706;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1rem;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 50px;
}

.section-footer .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--background-light);
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Page Layout Styles */
.page-container {
    background-color: var(--background-white);
    min-height: 100vh;
}

.page-header {
    background-color: var(--background-light);
    padding: 10px 0;
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-content {
    display: flex;
    gap: 30px;
    padding: 60px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    flex: 0 0 280px;
    background-color: var(--background-white);
    padding: 0 20px 0 0;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-search-form {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.sidebar-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    padding-right: 44px;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.sidebar-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.sidebar-search-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Ensure search icons display correctly on all pages */
.sidebar-search-btn svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    overflow: visible !important;
}

/* Additional button styling to prevent icon cutoff */
.sidebar-search-btn {
    min-width: 32px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
}

.sidebar-search-btn svg {
    display: block !important;
    margin: auto !important;
}

.sidebar-search-btn:hover {
    background: #c0392b;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.filter-list li {
    margin-bottom: 8px;
}

.filter-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-link:hover {
    color: var(--text-primary);
    background-color: var(--background-light);
}

.filter-link.active {
    color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.1);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Books and Records Grid */
.books-grid,
.records-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Ensure grid items break after every 3 items */
.books-grid > *:nth-child(3n+1),
.records-grid > *:nth-child(3n+1) {
    grid-column: 1;
}

.books-grid > *:nth-child(3n+2),
.records-grid > *:nth-child(3n+2) {
    grid-column: 2;
}

.books-grid > *:nth-child(3n+3),
.records-grid > *:nth-child(3n+3) {
    grid-column: 3;
}

.book-card,
.record-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.book-card-link,
.record-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.book-card-link:hover,
.record-card-link:hover {
    transform: translateY(-4px);
}

.book-card:hover,
.record-card:hover {
    transform: none;
    box-shadow: none;
}

.book-cover-wrapper,
.record-cover-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 0;
    margin-bottom: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover,
.record-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 0;
}

.book-card:hover .book-cover,
.record-card:hover .record-cover {
    transform: none;
}

.book-cover-placeholder,
.record-cover-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    border: none;
}

.book-details,
.record-details {
    padding: 0;
    text-align: left;
}

.book-title,
.record-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: left;
}

.book-author,
.record-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    font-style: normal;
    font-weight: 400;
    text-align: left;
}

.book-price,
.record-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    text-align: left;
}

.book-condition,
.record-condition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    height: 24px;
    line-height: 24px;
}

.condition-new {
    background-color: #d5f4e6;
    color: #27ae60;
}

.condition-used {
    background-color: #fef9e7;
    color: #f39c12;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Book and Record Detail Pages */
.book-detail-container,
.record-detail-container {
    background-color: var(--background-white);
    min-height: 100vh;
    padding: 60px 0;
}

.book-detail-content,
.record-detail-content {
    display: flex;
    gap: 80px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.book-cover-section,
.record-cover-section {
    flex: 0 0 400px;
    position: sticky;
    top: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    padding: 80px;
}

.book-detail-cover,
.record-detail-cover {
    width: 100%;
    object-fit: cover;
    box-shadow: 15px 15px 10px -10px rgba(0, 0, 0, 0.5);
}

.book-detail-cover-placeholder,
.record-detail-cover-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    padding: 40px;
    border: 2px dashed #dee2e6;
}

.book-info-section,
.record-info-section {
    flex: 1;
    min-width: 0;
}

.book-header,
.record-header {
    margin-bottom: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.book-detail-title,
.record-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.book-detail-author,
.record-detail-artist {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.book-detail-price,
.record-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0;
}

.book-meta,
.record-meta {
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    margin-right: 20px;
}

.meta-value {
    color: var(--text-secondary);
    font-size: 1rem;
}

.book-description,
.record-description {
    margin-bottom: 40px;
}

.book-description h3,
.record-description h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.book-actions,
.record-actions {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

.book-tags,
.record-tags {
    margin-bottom: 40px;
}

.book-tags h4,
.record-tags h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.related-books-section,
.related-records-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.related-books-section h3,
.related-records-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

.related-books-grid,
.related-records-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-book-placeholder,
.related-record-placeholder {
    background-color: var(--background-light);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    color: var(--text-secondary);
    font-style: italic;
}

/* About Page Styles */
.about-content {
    margin: 0 auto;
}

.about-body {
    line-height: 1.7;
}

.about-body h2,
.about-body h3,
.about-body h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-body h2 {
    font-size: 2rem;
    font-weight: 700;
}

.about-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.about-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.about-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-body ul,
.about-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.about-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

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

.about-body a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 10px 0;
    }

    .page-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .sidebar {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .books-grid,
    .records-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .book-cover-wrapper,
    .record-cover-wrapper {
        height: 280px;
    }

    .book-detail-content,
    .record-detail-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .about-body {
        padding: 0;
    }

    .book-cover-section,
    .record-cover-section {
        flex: none;
        width: 100%;
        position: static;
    }

    .book-detail-cover,
    .record-detail-cover {
        height: 400px;
    }

    .book-detail-cover-placeholder,
    .record-detail-cover-placeholder {
        height: 400px;
    }

    .related-books-grid,
    .related-records-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .carousel-container {
        margin: 0 20px 50px;
    }

    .carousel-item {
        flex: 0 0 250px;
        min-width: 250px;
    }

    .book-cover {
        flex: 0 0 180px;
        min-width: 180px;
        height: 270px;
    }

    .book-cover .cover-image-container {
        height: 270px;
    }

    .record-cover {
        flex: 0 0 220px;
        min-width: 220px;
        height: 220px;
    }

    .record-cover .cover-image-container {
        height: 220px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: -20px;
    }

    .carousel-btn-next {
        right: -20px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        min-width: auto;
    }

    nav ul {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 10px 0;
    }

    .page-content {
        padding: 30px 15px;
        gap: 30px;
    }

    .sidebar {
        padding: 0;
    }

    .sidebar-title {
        font-size: 1.2rem;
    }

    .books-grid,
    .records-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .book-cover-wrapper,
    .record-cover-wrapper {
        height: 250px;
    }

    .book-detail-content,
    .record-detail-content {
        gap: 30px;
    }

    .book-detail-title,
    .record-detail-title {
        font-size: 1.8rem;
    }

    .book-detail-cover,
    .record-detail-cover {
        height: 300px;
    }

    .book-detail-cover-placeholder,
    .record-detail-cover-placeholder {
        height: 300px;
    }

    .related-books-grid,
    .related-records-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .book-actions,
    .record-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .carousel-container {
        margin: 0 15px 50px;
    }

    .carousel-item {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .book-cover {
        flex: 0 0 160px;
        min-width: 160px;
        height: 240px;
    }

    .book-cover .cover-image-container {
        height: 240px;
    }

    .record-cover {
        flex: 0 0 200px;
        min-width: 200px;
        height: 200px;
    }

    .record-cover .cover-image-container {
        height: 200px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn-prev {
        left: -18px;
    }

    .carousel-btn-next {
        right: -18px;
    }

    .card-content {
        padding: 25px 20px;
    }

    .item-title {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
