/* ===== VARIABLES ===== */
:root {
    /* Backgrounds */
    --bg-primary: hsl(0, 0%, 7%);
    --bg-secondary: hsl(0, 0%, 10%);
    --bg-card: hsl(0, 0%, 10%);
    --bg-popover: hsl(0, 0%, 8%);
    
    /* Glass Effects */
    --glass-bg: hsl(0, 0%, 12%);
    --glass-border: hsl(0, 0%, 25%);
    
    /* Text */
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(0, 0%, 85%);
    --text-muted: hsl(0, 0%, 60%);
    
    /* Accents */
    --accent: hsl(0, 0%, 18%);
    --accent-hover: hsl(0, 0%, 15%);
    --muted: hsl(0, 0%, 20%);
    
    /* Borders */
    --border: hsl(0, 0%, 18%);
    --border-light: hsl(0, 0%, 15%);
    --ring: hsl(0, 0%, 35%);
    
    /* Status */
    --success: hsl(142, 76%, 36%);
    --error: hsl(0, 84%, 60%);
    
    /* Layout */
    --sidebar-width: 220px;
    --header-height: 64px;
    --radius: 0.5rem;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: hsla(0, 0%, 10%, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    border-bottom: 1px solid hsla(0, 0%, 25%, 0.3);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    font-size: 1.5rem;
}

.header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 32px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-form i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-form input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: hsla(0, 0%, 12%, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 25%, 0.3);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-btn {
    position: relative;
    padding: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: var(--text-muted);
    color: var(--bg-secondary);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: hsla(0, 0%, 12%, 0.6);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    padding: 24px 16px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: hsla(0, 0%, 15%, 0.6);
    color: var(--text-primary);
}

.nav-item.active {
    background: hsla(0, 0%, 15%, 0.8);
    color: var(--text-primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-section {
    margin-top: 32px;
}

.sidebar-section h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 16px;
}

.genre-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.genre-link:hover,
.genre-link.active {
    color: var(--text-primary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 32px;
    min-height: calc(100vh - var(--header-height));
}

/* ===== HERO ===== */
.hero {
    background: hsla(0, 0%, 12%, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 25%, 0.3);
    border-radius: 16px;
    padding: 64px;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    max-width: 500px;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== VINYL GRID ===== */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.vinyl-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vinyl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Estilos movidos a la sección VINYL CARD OVERLAY */

.vinyl-info {
    padding: 16px;
}

.vinyl-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinyl-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.vinyl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vinyl-price {
    font-size: 1.1rem;
    font-weight: 600;
}

.vinyl-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
}

.vinyl-rating i {
    font-size: 0.85rem;
}

/* ===== GENRE GRID ===== */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.genre-card {
    background: hsla(0, 0%, 12%, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 25%, 0.3);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.genre-card:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

/* ===== GENRE TABS ===== */
.genre-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.tab.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ===== SHOP HEADER ===== */
.shop-header {
    margin-bottom: 32px;
}

.shop-header-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.shop-header .subtitle {
    margin-bottom: 8px;
}

.shop-header .genre-tabs {
    margin-top: 8px;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 200;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    transition: right 0.3s;
    z-index: 201;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 1.1rem;
}

.close-btn {
    padding: 8px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.close-btn:hover {
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-artist {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cart-item-price {
    font-weight: 600;
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.cart-item-actions button {
    color: var(--text-muted);
    padding: 4px;
}

.cart-item-actions button:hover {
    color: var(--error);
}

.cart-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-qty span {
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cart-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.logo-center {
    justify-content: center;
    margin-bottom: 32px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
}

.auth-card h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: hsla(0, 0%, 12%, 0.6);
    border: 1px solid hsla(0, 0%, 25%, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--text-primary);
}

.link {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.link:hover {
    color: var(--text-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

/* ===== CHECKOUT ===== */
.checkout-page {
    padding: 32px;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.back-link:hover {
    color: var(--text-primary);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.checkout-form h1 {
    font-size: 1.75rem;
    margin-bottom: 32px;
}

.form-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.checkout-summary {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 32px;
}

.checkout-summary h3 {
    margin-bottom: 20px;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.item-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.item-title {
    font-weight: 600;
}

.item-artist {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.item-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== ORDERS ===== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.order-card:hover {
    border-color: var(--text-secondary);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-id {
    font-weight: 600;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pendiente {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-procesando {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-enviado {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.status-entregado {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-cancelado {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.order-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.order-info i {
    margin-right: 6px;
}

.order-total {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 24px;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 24px;
}

.modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.order-detail .order-meta {
    margin-bottom: 24px;
}

.order-detail .order-meta p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.order-detail h4 {
    margin-bottom: 16px;
}

.order-items-list .order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.order-items-list .order-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.order-items-list .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.order-total-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
    width: 100%;
}

.loading-spinner img {
    width: 80px;
    height: 80px;
}

.loading-spinner .spin {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.pagination button.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
}

.loading-vinyl {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    animation: spin 2s linear infinite;
}

.no-results,
.error {
    text-align: center;
    padding: 48px;
    color: var(--text-secondary);
}

/* ===== VINYL CARD OVERLAY ===== */
.vinyl-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.vinyl-link {
    display: block;
    width: 100%;
    height: 100%;
}

.vinyl-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vinyl-card:hover .vinyl-link img {
    transform: scale(1.05);
}

.vinyl-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.vinyl-card:hover .vinyl-overlay {
    opacity: 1;
}

.btn-overlay {
    width: 44px;
    height: 44px;
    padding: 0;
    background: hsla(0, 0%, 12%, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 0%, 25%, 0.5);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-overlay:hover {
    background: hsla(0, 0%, 20%, 0.9);
    transform: scale(1.1);
}

.btn-overlay.favorite-btn:hover,
.btn-overlay.favorite-btn.active {
    color: var(--error);
}

.vinyl-title-link {
    text-decoration: none;
    color: inherit;
}

.vinyl-title-link:hover .vinyl-title {
    color: var(--text-secondary);
}

/* ===== VINYL DETAIL PAGE ===== */
.vinyl-detail-container {
    margin-bottom: 48px;
}

.vinyl-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.vinyl-detail-image {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.vinyl-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinyl-detail-info {
    display: flex;
    flex-direction: column;
}

.vinyl-detail-header {
    margin-bottom: 24px;
}

.vinyl-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.vinyl-detail-artist {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.vinyl-detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vinyl-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vinyl-meta-item i {
    font-size: 0.9rem;
}

/* Rating de Discogs */
.vinyl-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.vinyl-detail-rating i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.vinyl-detail-rating .rating-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vinyl-detail-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vinyl-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.vinyl-detail-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.favorite-detail-btn.active {
    color: var(--error);
    border-color: var(--error);
}

/* ===== TRACKLIST ===== */
.tracklist {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    flex: 1;
}

.tracklist h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tracklist-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar */
.tracklist-list::-webkit-scrollbar {
    width: 6px;
}

.tracklist-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.tracklist-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.tracklist-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Firefox scrollbar */
.tracklist-list {
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-primary);
}

.track-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.track-item:hover {
    background: hsla(0, 0%, 15%, 0.6);
}

.track-position {
    width: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.track-title {
    flex: 1;
    color: var(--text-primary);
}

.track-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 50px;
    text-align: right;
}

/* ===== RELATED SECTION ===== */
.related-section {
    margin-top: 48px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .vinyl-detail {
        grid-template-columns: 350px 1fr;
        gap: 32px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
    
    .vinyl-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .vinyl-detail-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .vinyl-detail-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }
    
    .hero {
        padding: 40px 24px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .vinyl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .shop-header {
        flex-direction: column;
    }
    
    .genre-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .vinyl-detail {
        padding: 20px;
    }
    
    .vinyl-detail-title {
        font-size: 1.5rem;
    }
    
    .vinyl-detail-price {
        font-size: 1.5rem;
    }
    
    .vinyl-detail-actions {
        flex-direction: column;
    }
    
    .vinyl-detail-actions .btn {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-error i {
    color: var(--error);
}

.toast-info {
    border-left: 4px solid var(--text-muted);
}

.toast-info i {
    color: var(--text-muted);
}

/* ===== FAVORITE BADGE ===== */
.vinyl-card .favorite-btn.active {
    color: var(--error);
    background: hsla(0, 84%, 60%, 0.2);
    border-color: var(--error);
}

.btn-overlay.favorite-btn.active {
    color: var(--error);
    background: hsla(0, 84%, 60%, 0.3);
    border-color: var(--error);
}
