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

body { font-family: Arial, sans-serif; font-size: 16px; color: #2c2c2c; background: #fdf6ee; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }

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


/* ================================================================
   БАННЕР
   ================================================================ */
.site-banner { width: 100%; overflow: hidden; }

.site-banner img { width: 100%; height: auto; object-fit: cover; }

/* ПК — показуємо широкий, ховаємо вузький */
.banner-pc { display: block; }
.banner-sm { display: none; }

/* Мобіла — навпаки */
@media (max-width: 768px) {
    .banner-pc { display: none; }
    .banner-sm { display: block; }
}


/* ================================================================
   НАВІГАЦІЯ
   ================================================================ */
.site-nav { background: #2c2c2c; }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-left { display: flex; gap: 24px; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-left a, .nav-right a {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-left a:hover, .nav-right a:hover { opacity: 0.7; }

/* Кошик */
.nav-cart { display: flex; align-items: center; gap: 4px; }

.cart-count {
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Кнопка входу */
.nav-login {
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
    transition: background 0.2s;
}
.nav-login:hover { background: rgba(255,255,255,0.15); opacity: 1; }

/* ================================================================
   ГОЛОВНА — HERO
   ================================================================ */
.home-hero {
    display: flex;
    justify-content: center;
    padding: 48px 20px;
}

.home-about {
    text-align: center;
    line-height: 1.6;
    font-size: 130%; /* +30% до будь-якого розміру що задав юзер */
}

/* ================================================================
   КОНТЕНТ
   ================================================================ */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* ================================================================
   ФУТЕР
   ================================================================ */
.site-footer {
    background: #2c2c2c;
    color: #bbb;
    margin-top: 10px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-contacts {
    font-size: 14px;
    line-height: 1em;
}

.footer-contacts a { color: #ddd; }
.footer-contacts a:hover { color: #fff; opacity: 1; }

.footer-copy {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}


/* ================================================================
   МОБІЛА — загальні правки
   ================================================================ */
@media (max-width: 768px) {
    .nav-inner { padding: 0 12px; }
    .nav-left { gap: 14px; }
    .nav-left a { font-size: 13px; }

    .site-content { padding: 20px 12px; }
}

@media (max-width: 480px) {
    /* На зовсім вузьких — ховаємо підписи меню крім головної */
    .nav-left a:not(:first-child) { display: none; }
}

/* ================================================================
   АВТОРИЗАЦІЯ
   ================================================================ */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px 28px;
}

.auth-title { font-size: 22px; margin-bottom: 24px; color: #2c2c2c; }

.auth-field { display: flex; flex-direction: column; margin-bottom: 16px; }

.auth-field label { font-size: 13px; color: #666; margin-bottom: 5px; }

.auth-field input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.auth-field input:focus { border-color: #2c2c2c; }

.auth-error { color: #c0392b; font-size: 13px; min-height: 18px; margin-bottom: 12px; }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}
.btn-primary:hover { background: #444; }

.btn-link {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.btn-link:hover { color: #2c2c2c; }

/* ================================================================
   ОСОБИСТИЙ КАБІНЕТ
   ================================================================ */
.account-section {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.account-header h1 { font-size: 22px; }
.account-actions { display: flex; gap: 10px; align-items: center; }

/* --- Рядки профілю --- */
.profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-label {
    width: 80px;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-value {
    flex: 1;
    font-size: 15px;
    color: #2c2c2c;
}
.profile-value em { color: #ccc; font-style: normal; }

.profile-input {
    flex: 1;
    padding: 5px 9px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.profile-input:focus { border-color: #2c2c2c; }

/* Кнопки редагування рядка */
.profile-controls { display: flex; gap: 4px; flex-shrink: 0; }

.profile-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 3px 5px;
    opacity: 0.35;
    border-radius: 3px;
    transition: opacity 0.15s, background 0.15s;
    line-height: 1;
}
.profile-controls button:hover { opacity: 1; background: #f0f0f0; }

/* --- Зміна пароля --- */
.account-password-wrap { margin-top: 28px; }

.change-password-form {
    margin-top: 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}

.form-buttons { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.form-buttons .btn-primary { width: auto; padding: 9px 22px; }

/* --- Кнопки --- */
.btn-secondary {
    padding: 7px 16px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: #2c2c2c; color: #2c2c2c; }

@media (max-width: 480px) {
    .account-section { padding: 20px 12px; }
    .profile-label { width: 65px; font-size: 11px; }
}

/* Блок "Про себе" */
.profile-row-area {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.profile-area-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-area-value {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    min-height: 20px;
    white-space: pre-wrap;
}

.profile-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    overflow: hidden;
    min-height: 60px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.profile-textarea:focus { border-color: #2c2c2c; }


/* Google кнопка */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #2c2c2c;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 4px;
    text-decoration: none;
}
.btn-google:hover { background: #f5f5f5; border-color: #bbb; opacity: 1; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #ccc;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: #eee; }