/* ===== CSS Variables ===== */
:root {
    --black: #111111;
    --dark: #1a1a1a;
    --dark2: #222222;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d1d1d1;
    --gray-400: #a8a8a8;
    --gray-500: #787878;
    --gray-600: #525252;
    --gray-700: #3a3a3a;

    --gold: #c5a45c;
    --gold-dark: #b08e3e;
    --gold-light: #d9be7e;

    --red: #b91c1c;
    --red-dark: #991b1b;

    --green: #16a34a;

    --radius: 6px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ===== Header ===== */
.header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.logo__king {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo__memory {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: lowercase;
}

.header__nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.header__nav a {
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

.header__nav a:hover { color: var(--white); }
.header__nav a.active { color: var(--gold); }
.header__nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.header__shop-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.header__shop-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
    background: radial-gradient(ellipse at top, rgba(197,164,92,0.10), transparent 60%), linear-gradient(180deg, #0a0a0a 0%, #131313 100%);
    position: relative;
    overflow: hidden;
    padding: 90px 20px 64px;
    text-align: center;
    border-bottom: 1px solid rgba(197,164,92,0.15);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(197,164,92,0.35);
    border-radius: 30px;
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

.hero__badge svg { width: 14px; height: 14px; }

.hero__title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title em {
    color: var(--gold);
    font-style: normal;
}

.hero__subtitle {
    font-size: 17px;
    color: var(--gray-400);
    margin: 0 auto 32px;
    max-width: 560px;
}

.hero__stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
}

.hero__stars svg {
    width: 26px;
    height: 26px;
}

.hero__rating-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-400);
}

/* ===== Stats ===== */
.stats {
    background: var(--black);
    border-bottom: 1px solid rgba(197,164,92,0.12);
}

.stats__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}

.stat__label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Reviews Section ===== */
.reviews-section {
    background: var(--gray-50);
    padding: 64px 0;
    min-height: 500px;
}

.reviews-section__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-section__header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.reviews-section__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-section__filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--black);
}

.filter-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--gold);
}

/* Rating Distribution */
.rating-distribution {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.rating-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rating-bar__header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.rating-bar__track {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.rating-bar__count {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 16px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: var(--gray-100);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

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

.review-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-card__info {
    flex: 1;
    min-width: 0;
}

.review-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.review-card__date {
    font-size: 13px;
    color: var(--gray-400);
}

.review-card__stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.review-card__stars svg {
    width: 18px;
    height: 18px;
}

.review-card__product {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 12px 16px;
    position: relative;
    z-index: 1;
}

.review-card__product-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.review-card__product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.review-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    position: relative;
    z-index: 1;
    flex: 1;
}

.review-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(22,163,74,0.08);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.review-card__badge svg {
    width: 12px;
    height: 12px;
}

.review-card__photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.review-card__photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
}

.review-card__photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.review-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.review-card__kaspi-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #F14635;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(241,70,53,0.25);
    transition: all var(--transition);
    flex-shrink: 0;
}

.review-card__kaspi-link:hover {
    background: rgba(241,70,53,0.08);
    border-color: #F14635;
}

/* Loading & Empty States */
.loading, .no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-400);
    font-size: 18px;
}

.loading svg {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 12px;
}

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

/* Load More */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 40px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.load-more-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(197,164,92,0.06) 0%, transparent 60%);
}

.cta__container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cta__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.cta__text {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.cta__btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--gold);
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.cta__btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197,164,92,0.3);
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--gray-400);
    padding-top: 64px;
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo--footer { margin-bottom: 8px; }

.footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-500);
}

.footer__heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold); }

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(197,164,92,0.08);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .header__nav { display: none; }
    .header__shop-btn span { display: none; }
    .header__shop-btn { padding: 8px; }

    .hero__container {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        text-align: center;
    }
    .hero__rating { justify-content: center; }
    .hero__image { display: none; }

    .stats__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 32px 20px;
    }

    .rating-distribution {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .reviews-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .stats__container {
        grid-template-columns: 1fr;
    }
    .stat__number { font-size: 28px; }
    .hero__title { font-size: 32px; }
    .reviews-section__title { font-size: 24px; }
    .review-card { padding: 20px; }
}
