/* ============================================================================
   BUSTER CALL RECORDS - STYLE PRINCIPAL
   Style minimaliste inspiré de CPH Crates
   ============================================================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #e0e0e0;
    --color-gray-dark: #666666;
    --color-border: #d0d0d0;
    --color-promo: #ff0000;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

/* === LAYOUT === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo:hover {
    opacity: 0.7;
}

/* === NAVIGATION === */
.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-black);
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icon {
    font-size: 1.2rem;
    position: relative;
}

.nav-icon:hover {
    opacity: 0.6;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        padding: 20px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid var(--color-gray-medium);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* === FILTERS BAR === */
.filters-bar {
    background: var(--color-gray-light);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-dark);
}

.filter-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 0;
    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 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: 1px solid var(--color-black);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-checkbox input {
    cursor: pointer;
}

@media (max-width: 768px) {
    .filters-bar {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .filter-select {
        min-width: 120px;
    }
}

/* === PRODUCT GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 40px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* === PRODUCT CARD === */
.product-card {
    display: block;
    transition: var(--transition);
}

.product-card:hover {
    opacity: 0.85;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-gray-light);
    margin-bottom: 15px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-artist {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 400;
}

.product-price {
    font-size: 0.9rem;
    margin-top: 8px;
}

.product-price-original {
    text-decoration: line-through;
    color: var(--color-gray-dark);
    margin-right: 8px;
}

.product-price-promo {
    color: var(--color-promo);
    font-weight: 600;
}

/* === HERO SECTION === */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-dark);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
}

.btn-primary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 1px solid var(--color-black);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* === FOOTER === */
.footer {
    background: var(--color-gray-light);
    border-top: 1px solid var(--color-border);
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.footer-link:hover {
    color: var(--color-black);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    font-size: 1.2rem;
}

.social-link:hover {
    opacity: 0.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--color-border);
}

.newsletter-btn {
    padding: 10px 20px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-btn:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-gray-dark);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden {
    display: none !important;
}

/* === USER DROPDOWN MENU === */
.user-dropdown {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    display: none;
    z-index: 1000;
}

.user-dropdown-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-gray-light);
}

.user-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-info small {
    font-size: 0.8rem;
    color: var(--color-gray-dark);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--color-black);
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--color-gray-light);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
}

/* === FILTRES HORIZONTAUX === */
.filters-container {
    max-width: 1200px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.filters-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 4px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: #999;
}

.filter-select:focus {
    outline: none;
    border-color: #000;
}

/* Grille produits - Spécifique page catalog */
.products-grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Spécifique page catalog */
.products-grid-catalog .product-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.products-grid-catalog .product-image-wrapper {
    position: relative;
    margin-bottom: 15px;
    background: #f8f8f8;
    aspect-ratio: 1;
    overflow: hidden;
}

.products-grid-catalog .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products-grid-catalog .product-card:hover .product-image {
    transform: scale(1.05);
}

.products-grid-catalog .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 3px;
}

.products-grid-catalog .product-badge.sold-out {
    background: #999;
}

.products-grid-catalog .product-badge.promo {
    background: #d32f2f;
}

.products-grid-catalog .product-info {
    padding: 0 5px;
}

.products-grid-catalog .product-artist {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-grid-catalog .product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.products-grid-catalog .product-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.products-grid-catalog .product-price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.products-grid-catalog .product-price-promo {
    color: #d32f2f;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #000;
    color: #fff;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 30px 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}
