/* GT Pressura Mono Font Faces */
@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Light-Italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Regular-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Medium-Italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Bold-Italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('/fonts/GT-Pressura-LCGV-Mono-Black-Italic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Google Fonts - Stylish */
@import url('https://fonts.googleapis.com/css2?family=Stylish&display=swap');

/* CSS Variables */
:root {
    --bg: #000000;
    --text-primary: #e8e7df;
    --text-muted: #666666;
    --text-secondary: #999999;
    --text-tertiary: #e3e3d5;
    --spacing-unit: 20px;

}

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

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'GT Pressura Mono', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Header */
.header {
    padding: 120px 0 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text {
    font-family: 'Stylish', serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.header-video {
    width: 100%;
    max-width: 1920px;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: var(--bg);
}

/* Horizontal divider */
.divider {
    width: 100%;
    height: 1px;
    background: #333333;
    margin: 60px 0 40px 0;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    padding-bottom: 10PX;
    PADDING-LEFT: 5PX;
}

/* Search */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-arrow {
    font-family: 'GT Pressura Mono', monospace;
    font-size: 18px;
    color: var(--text-primary);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'GT Pressura Mono', monospace;
    font-size: 15px;
    color: var(--text-primary);
    padding: 5px 0;
    width: 300px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Sort Options */
.sort-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'GT Pressura Mono', monospace;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s;
}

.sort-btn:hover {
    color: var(--text-primary);
}

.sort-btn.active {
    color: #d4a017;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 40px;
    padding-bottom: 100px;
    margin-top: -20px; /* vinyl appears into hero */
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    cursor: pointer;
}

.product-card--skeleton {
    pointer-events: none;
    cursor: default;
}

.product-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
    touch-action: manipulation;
}

.product-link:focus-visible {
    outline: 1px solid #dcd7ca;
    outline-offset: 4px;
}

/* Image Container */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0a0a0a;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image img.placeholder {
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 1;
}

.product-image img.full {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 2;
}

.product-image img.full.loaded {
    opacity: 1;
}

.skeleton-block,
.skeleton-line {
    position: relative;
    overflow: hidden;
    background: #111111;
}

.skeleton-block::after,
.skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.09) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-image {
    margin-bottom: 10px;
}

.skeleton-line {
    height: 14px;
}

.skeleton-line-artist {
    width: 82%;
    height: 16px;
    margin: 2px 0;
}

.skeleton-line-track {
    width: 66%;
    margin: 4px 0 0;
}

.skeleton-line-style {
    width: 74%;
    margin: 6px 0 0;
    height: 12px;
}

.skeleton-line-price {
    width: 40%;
    margin: 8px 0 0;
    height: 15px;
}

.product-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #121212;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 60, 80, 0.08), transparent 40%),
        linear-gradient(180deg, #090909 0%, #040404 100%);
}

.product-image-empty-state {
    font-family: 'GT Pressura Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8d8d82;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 3px;
}

.product-artist {
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-track {
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.product-label {
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
    margin-top: 2px;
}

.product-style {
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    padding-top: 3px;
    color: var(--text-tertiary);
}

.product-availability {
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.35;
    color: #9dd6ac;
    margin-top: 4px;
}

.product-price {
    font-family: 'GT Pressura Mono', monospace, Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-top: 5px;
}

.currency-rub {
    display: inline-block;
    margin-left: 0.14em;
    font-family: 'GT Pressura Mono', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    line-height: 1;
    vertical-align: -0.03em;
}

.currency-rub-svg {
    display: inline-block;
    width: 0.43em;
    height: 0.64em;
    margin-left: 0.08em;
    vertical-align: -0.02em;
    background-color: currentColor;
    -webkit-mask-image: url('/images/ruble-glyph.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url('/images/ruble-glyph.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.product-match-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(88, 214, 141, 0.65);
    background: rgba(88, 214, 141, 0.14);
    color: #86e9b0;
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-discogs {
    font-family: 'GT Pressura Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.35;
    color: #a9b4bf;
    margin-top: 4px;
}

/* Loading States */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-block::after,
    .skeleton-line::after {
        animation: none;
    }
}

#load-more-trigger {
    grid-column: 1 / -1;
    height: 1px;
    visibility: hidden;
}

/* Stats */
.stats {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1400px) {
    .catalog-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 20px;
    }
    
    .header {
        padding: 80px 0 60px 0;
    }
    
    .header-text {
        font-size: 36px;
    }
    
    .header-video {
        max-height: 60vh;
    }
    
    .controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .sort-options {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 15px;
    }
    
    .header {
        padding: 60px 0 40px 0;
    }
    
    .header-text {
        font-size: 28px;
    }
    
    .header-video {
        max-height: 50vh;
    }
    
    .search-input {
        width: 200px;
    }
    
    .sort-options {
        gap: 15px;
    }
    
    .sort-btn {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
    
    .sort-options {
        flex-wrap: wrap;
    }
    
    .search-input {
        width: 150px;
    }
}

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 22px 0;
}

.brand-left {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    white-space: nowrap;
}

.brand-dot-img {
    width: 9px;
    height: 9px;
    transform: translateY(-0.45em);
    filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.6)) drop-shadow(0 0 12px rgba(255, 59, 59, 0.35));
}

.brand-name {
    font-family: 'Stylish', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.top-links {
    display: flex;
    gap: 22px;
}

.top-links a {
    font-family: 'Stylish', serif;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 20px;
}

.top-links a.phone {
    color: var(--text-tertiary);
}

/* Hero */
.hero {
    position: relative;
    height: 54vh; /* big promo space */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-dot {
    width: 10px;
    height: 10px;
}

.hero-text {
    font-family: 'Stylish', serif;
    font-weight: 400;
    font-size: 50px;
    color: var(--text-tertiary);
}

.hero-video {
    width: 100%;
    height: 100%;
    max-width: 1920px;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: var(--bg);
}

/* Mobile header layout */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 14px 0 10px 0;
        gap: 10px;
    }
    .brand-left {
        gap: 6px;
        margin: 10px;
    }
    .brand-dot-img {
        width: 9px;
        height: 9px;
        transform: translateY(-0.28em);
    }
    .brand-name {
        font-size: 24px;
    }
    .top-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .top-links a { 
        font-size: 16px;
    }
    .hero {
        height: 56vh;
        margin-bottom: 16px;
    }
    .hero-text {
        font-size: 32px;
    }
    
    .hero-video {
        max-height: 100%;
    }
}

/* WIP page: lightweight, list-first UX */
.wip-page .container {
    max-width: 1500px;
    padding-top: 18px;
}

.wip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0 14px 0;
}

.wip-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wip-title {
    margin: 0;
    font-family: 'Stylish', serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.4px;
    color: var(--text-tertiary);
}

.wip-subtitle {
    margin: 0;
    font-family: 'GT Pressura Mono', monospace;
    font-size: 11px;
    color: #9f9f93;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wip-back-link {
    font-family: 'GT Pressura Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.wip-controls {
    position: sticky;
    top: 0;
    z-index: 12;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(6px);
    margin-bottom: 8px;
    padding-top: 8px;
}

.wip-stats {
    text-align: left;
    margin-bottom: 16px;
    padding-left: 5px;
}

.wip-page .catalog-grid {
    margin-top: 0;
    gap: 26px 18px;
}

.wip-page .product-card {
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.wip-page .product-card:hover {
    transform: translateY(-2px);
}

.wip-page .product-card:active {
    opacity: 0.9;
}

.wip-page .product-image {
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .wip-page .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px 14px;
    }
}

@media (max-width: 768px) {
    .wip-page .container {
        padding-top: 6px;
    }

    .wip-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .wip-title {
        font-size: 22px;
    }

    .wip-back-link {
        font-size: 13px;
    }

    .wip-page .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
}
