/* =================================================
   ФІНАЛЬНИЙ РЕДИЗАЙН MIRAGE PERFUME
   ================================================= */

/* ========== 1. ЗМІННІ ========== */
:root {
    --bg: #fefefe;
    --surface: #ffffff;
    --text: #0a0a0a;
    --text-light: #4a5568;
    --primary: #0b3b3f;
    --primary-light: #2c6e6b;
    --accent: #d4af37;
    --accent-dark: #b8860b;
    --danger: #e53e3e;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 1rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --primary: #2dd4bf;
    --primary-light: #5eead4;
    --accent: #facc15;
    --accent-dark: #eab308;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: 70px; /* для плаваючих кнопок */
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== 2. ШАПКА ========== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
body.dark-theme header {
    background: rgba(15,23,42,0.9);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 32px;
    width: auto;
    border-radius: 8px;
}
.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: none;
}
.mobile-menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}
.header-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.cart-icon, .user-icon a {
    color: var(--text);
    font-size: 1.3rem;
    position: relative;
    transition: var(--transition);
}
.cart-icon:hover, .user-icon a:hover {
    color: var(--accent);
}
#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 0.4rem;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* Бургер-меню (виїзд зліва, не на весь екран) */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 5rem 1.5rem 2rem;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    border-right: 1px solid var(--border);
}
.mobile-nav.active {
    transform: translateX(0);
}
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
/* затемнення фону при відкритому меню */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    display: none;
}
body.menu-open .mobile-nav {
    display: block;
}

/* ========== 3. ГЕРОЙ ========== */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* ========== 4. ПЕРЕВАГИ ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.feature-card {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== 5. КАТАЛОГ ========== */
.catalog-page h1 {
    font-size: 1.8rem;
    margin: 1rem 0 1rem;
    text-align: center;
}
.catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.search-input, #sort-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 3rem;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
}
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.product-card {
    background: var(--surface);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.sale-badge, .out-of-stock {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--accent);
    color: #000;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}
.out-of-stock {
    background: var(--danger);
    color: white;
}
.product-card h3 {
    font-size: 1rem;
    padding: 0.8rem 1rem 0.2rem;
    font-weight: 600;
}
.short-desc {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.price-block {
    padding: 0 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.8rem;
}
.price, .sale-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.product-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0.8rem 1rem 1rem;
}
.btn-add-to-cart, .btn-order-telegram, .btn-disabled {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0;
    border-radius: 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn-add-to-cart {
    background: var(--primary);
    color: white;
}
.btn-add-to-cart:hover {
    background: var(--primary-light);
}
.btn-order-telegram {
    background: #0088cc;
    color: white;
}
.btn-order-telegram:hover {
    background: #006699;
}
.btn-disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}
.product-rating {
    padding: 0 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #fbbf24;
}
.rating-count {
    color: var(--text-light);
    font-size: 0.7rem;
}

/* ========== 6. СОЦІАЛЬНІ ІКОНКИ (КРУГЛІ) ========== */
.social-floating {
    display: none;
}
.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}
.social-floating a, .mobile-social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
    text-decoration: none;
    color: white;
}
.social-floating a:hover, .mobile-social-icons a:hover {
    transform: scale(1.05);
}
.social-floating .fa-tiktok, .mobile-social-icons .fa-tiktok {
    background: #000;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
}
.social-floating .fa-instagram, .mobile-social-icons .fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-floating .fa-telegram, .mobile-social-icons .fa-telegram {
    background: #0088cc;
}

@media (min-width: 768px) {
    .social-floating {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 1rem;
        bottom: 5rem;
        gap: 0.8rem;
        z-index: 80;
    }
    .mobile-social-icons {
        display: none;
    }
    .nav-links {
        display: flex;
        gap: 1.8rem;
        list-style: none;
    }
    .nav-links a {
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }
    .nav-links a:hover {
        color: var(--accent);
    }
    .mobile-menu {
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-toolbar {
        flex-direction: row;
        align-items: center;
    }
    .search-input {
        flex: 1;
    }
    #sort-select {
        width: auto;
        min-width: 180px;
    }
    .cart-page h1, .cart-empty {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== 7. ПЕРЕМИКАЧ ТЕМИ (ПРОЗОРИЙ ФОН) ========== */
.theme-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: transparent;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s;
}
.theme-toggle:hover {
    transform: scale(1.05);
}
.theme-toggle i {
    font-size: 1.5rem;
    color: var(--text);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ========== 8. КОШИК ========== */
.cart-page h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.cart-empty {
    text-align: center;
    padding: 2rem;
}
.cart-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cart-items {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
}
.cart-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 600;
}
.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.cart-item-quantity button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 1.2rem;
    cursor: pointer;
}
.cart-item-quantity input {
    width: 48px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.3rem;
}
.cart-item-remove {
    cursor: pointer;
    color: var(--danger);
    text-align: right;
}
.cart-summary {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}
.summary-total {
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    color: var(--accent);
}
.customer-info input, .customer-info select {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin: 1rem 0;
}
.btn-telegram {
    width: 100%;
    background: #0088cc;
    color: white;
    padding: 0.8rem;
    border-radius: 2.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.autocomplete-suggestions {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 2rem);
    z-index: 90;
}
.autocomplete-suggestions div {
    padding: 0.7rem 1rem;
    cursor: pointer;
}
@media (min-width: 768px) {
    .cart-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .cart-items {
        flex: 2;
    }
    .cart-summary {
        flex: 1;
        position: sticky;
        top: 100px;
    }
    .cart-item {
        flex-direction: row;
        align-items: center;
    }
    .cart-item-remove {
        align-self: center;
    }
}

/* ========== 9. СТОРІНКА ТОВАРУ ========== */
.product-details {
    background: var(--surface);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.product-image-large {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}
.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 1.2rem;
}
.product-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.product-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin: 0.8rem 0;
}
.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.old-price-large {
    text-decoration: line-through;
    color: var(--text-light);
}
.sale-price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}
.stock-status {
    margin: 0.8rem 0;
}
.in-stock {
    color: #10b981;
}
.out-of-stock {
    color: var(--danger);
}
.product-description p {
    color: var(--text-light);
    line-height: 1.5;
}
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}
@media (min-width: 640px) {
    .product-details {
        display: flex;
        flex-direction: row;
    }
    .product-image-large {
        flex: 1;
        max-width: 50%;
    }
    .product-info {
        flex: 1;
    }
    .product-buttons {
        flex-direction: row;
    }
}

/* ========== 10. ВІДГУКИ ========== */
.reviews-section {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}
.add-review-card {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1.2rem;
    margin-bottom: 1.5rem;
}
.star-rating-group {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}
.star-rating {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}
.star-rating:hover, .star-rating.active {
    color: #fbbf24;
}
.review-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    color: var(--text);
    margin: 0.5rem 0;
}
.review-form button {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
}
.review-form button:hover {
    background: var(--primary-light);
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.review-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1.2rem;
    border-left: 4px solid var(--primary);
}
.review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.review-author {
    font-weight: 600;
}
.review-date {
    font-size: 0.7rem;
    color: var(--text-light);
}
.review-rating {
    color: #fbbf24;
    margin-left: auto;
}
.review-content {
    font-size: 0.9rem;
    color: var(--text-light);
}
.admin-reply {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(16,185,129,0.1);
    border-radius: 1rem;
    border-left: 3px solid var(--primary);
}

/* ========== 11. АДМІН-ПАНЕЛЬ ========== */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}
.admin-sidebar h2 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
}
.admin-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}
.admin-sidebar li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border-radius: 2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
}
.admin-sidebar li a:hover {
    background: var(--primary);
    color: white;
}
.admin-content {
    flex: 1;
    padding: 1rem;
    overflow-x: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.btn-add {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 1rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
.admin-table th, .admin-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    background: var(--bg);
}
.product-image {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
}
.stock-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
}
.in-stock {
    background: #10b98120;
    color: #10b981;
}
.out-of-stock {
    background: #ef444420;
    color: #ef4444;
}
.btn-edit, .btn-delete, .btn-view, .btn-toggle-stock {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    text-decoration: none;
    margin-right: 0.3rem;
}
.btn-edit { background: #f59e0b; color: white; }
.btn-delete { background: #ef4444; color: white; }
.btn-view { background: #3b82f6; color: white; }
.btn-toggle-stock { background: #6c757d; color: white; }
.admin-form {
    max-width: 600px;
    background: var(--surface);
    padding: 1.2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--bg);
    color: var(--text);
}
@media (min-width: 768px) {
    .admin-container {
        flex-direction: row;
    }
    .admin-sidebar {
        width: 240px;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    .admin-sidebar ul {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-table {
        display: table;
        white-space: normal;
    }
}

/* ========== 12. СТОРІНКИ КОНТЕНТУ ========== */
.about-page, .delivery-page, .howto-page {
    max-width: 800px;
    margin: 1rem auto;
}
.about-card, .delivery-card, .step {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}
.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}
.about-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.about-highlight {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}
.about-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1rem;
}
.about-item ul {
    list-style: none;
    margin-top: 0.5rem;
}
.about-item li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.delivery-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.delivery-card h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.delivery-card ul {
    list-style: none;
    margin-top: 0.5rem;
}
.delivery-card li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
}
.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #000;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}
.about-cta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}
/* Стиль для блоку з Telegram-менеджером */
.contact-telegram-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.contact-telegram-box i {
    font-size: 1.5rem;
    color: #0088cc;
}
.contact-telegram-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
@media (min-width: 640px) {
    .about-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .about-item {
        flex: 1;
    }
    .delivery-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .delivery-card {
        flex: 1;
    }
}

/* ========== 13. LOGIN СТОРІНКА ========== */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
}
.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: #444;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: var(--transition);
}
.google-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* ========== 14. ФУТЕР ========== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}
footer p {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ========== 15. ДОПОМІЖНІ ========== */
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 16. АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ (ДОДАТКОВО) ========== */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
        white-space: nowrap;
    }
    .logo-img {
        height: 28px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .products-grid {
        gap: 1rem;
    }
    .product-image {
        height: auto;
    }
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .mobile-nav {
        width: 260px;
    }
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-icon {
        margin-bottom: 0.5rem;
    }
}

/* =================================================
   ДОПОВНЕННЯ ТА ВИПРАВЛЕННЯ
   ================================================= */

/* 1. СОЦІАЛЬНІ ІКОНКИ – КРУГЛІ, КОЛЬОРОВІ */
.social-floating a,
.mobile-social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
    text-decoration: none;
    color: white !important;
    background: none;
}
.social-floating a:hover,
.mobile-social-icons a:hover {
    transform: scale(1.05);
}
.social-floating .fa-tiktok,
.mobile-social-icons .fa-tiktok {
    background: #000 !important;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
}
.social-floating .fa-instagram,
.mobile-social-icons .fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}
.social-floating .fa-telegram,
.mobile-social-icons .fa-telegram {
    background: #0088cc !important;
}
@media (max-width: 767px) {
    .mobile-social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 2. СТОРІНКА ДОСТАВКИ – ВИРІВНЮВАННЯ ТЕКСТУ */
.delivery-card {
    text-align: left;
}
.delivery-card ul {
    margin-top: 1rem;
}
.delivery-card li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.delivery-card li i {
    width: 1.5rem;
    color: var(--primary);
    font-size: 1.2rem;
}
.delivery-card li span {
    flex: 1;
}
.delivery-card li:last-child {
    border-bottom: none;
}

/* 3. СТОРІНКА ПРО НАС – ГАРАНТІЯ ВІДОБРАЖЕННЯ КАРТКИ */
.about-card {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}
.about-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.about-intro {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.about-highlight {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.about-highlight i {
    font-size: 2rem;
    color: var(--primary);
}
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.about-item {
    background: var(--bg);
    padding: 1rem;
    border-radius: 1rem;
}
.about-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.about-item ul {
    list-style: none;
}
.about-item li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
}
.about-why {
    margin-bottom: 1.5rem;
}
.about-why h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
@media (min-width: 640px) {
    .about-grid {
        flex-direction: row;
    }
    .about-item {
        flex: 1;
    }
}

/* 4. СТОРІНКА ВІДГУКІВ – СТИЛІЗАЦІЯ КНОПОК ФІЛЬТРУ */
.reviews-page .filters,
.reviews-page .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.reviews-page .btn-filter,
.reviews-page .btn-all {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.reviews-page .btn-filter:hover,
.reviews-page .btn-all:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.reviews-page .btn-filter.active,
.reviews-page .btn-all.active {
    background: var(--primary);
    color: white;
}
/* Якщо кнопка "Застосувати" є окремою */
.reviews-page button[type="submit"],
.reviews-page .apply-filter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.reviews-page button[type="submit"]:hover,
.reviews-page .apply-filter:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* 5. ЗАГАЛЬНІ СТИЛІ ДЛЯ КНОПОК (для єдиного вигляду) */
button, .btn, a.btn {
    border-radius: 2rem !important;
    transition: var(--transition);
}
button:active, .btn:active {
    transform: scale(0.98);
}

/* =================================================
   ДОДАТКОВІ ВИПРАВЛЕННЯ
   ================================================= */

/* 1. Кнопка "Перейти до каталогу" на сторінці про нас */
.about-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.about-cta .btn {
    display: inline-block;
    min-width: 200px;
    text-align: center;
}
@media (min-width: 768px) {
    .about-cta {
        justify-content: flex-start;
    }
}

/* 2. Сторінка відгуків – нові стилі кнопок */
.reviews-page .filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}
.reviews-page .filter-select {
    padding: 0.75rem 1.2rem;
    border-radius: 3rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    min-width: 220px;
}
.reviews-page .btn-filter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.reviews-page .btn-filter:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.reviews-page .btn-filter:active {
    transform: translateY(0);
}
.reviews-page .no-reviews .btn {
    margin-top: 1rem;
}
@media (max-width: 640px) {
    .reviews-page .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .reviews-page .filter-select,
    .reviews-page .btn-filter {
        width: 100%;
        text-align: center;
    }
}

/* =================================================
   ФІНАЛЬНІ ВИПРАВЛЕННЯ
   ================================================= */

/* 1. Кнопка "Перейти до каталогу" по центру на всіх пристроях */
.about-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.about-cta .btn {
    min-width: 200px;
    text-align: center;
}

/* 2. Соціальні іконки – круглі (примусово) */
.social-floating a,
.mobile-social-icons a,
.about-social .social-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
    text-decoration: none;
    color: white !important;
    background: none;
}
.social-floating a:hover,
.mobile-social-icons a:hover,
.about-social .social-icon:hover {
    transform: scale(1.05);
}
.social-floating .fa-tiktok,
.mobile-social-icons .fa-tiktok,
.about-social .fa-tiktok {
    background: #000 !important;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
}
.social-floating .fa-instagram,
.mobile-social-icons .fa-instagram,
.about-social .fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}
.social-floating .fa-telegram,
.mobile-social-icons .fa-telegram,
.about-social .fa-telegram {
    background: #0088cc !important;
}
/* Адаптація для мобільних іконок у футері */
.mobile-social-icons a {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem;
}
/* Іконки на сторінці "Про нас" */
.about-social {
    text-align: center;
    margin-top: 2rem;
}
.about-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.about-social .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* 3. Сторінка відгуків – відступ для повідомлення "Немає відгуків" */
.no-reviews {
    margin-bottom: 2rem;
    text-align: center;
    background: var(--surface);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}
.no-reviews p {
    margin-bottom: 0; /* без кнопки відступ не потрібен */
}

/* 4. Зменшення кнопки Google Login */
.login-container .google-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    border-radius: 2rem !important;
}
.login-container .google-btn img {
    width: 16px !important;
    height: 16px !important;
}
.login-container .google-btn {
    margin-top: 1rem !important;
}

/* 5. Сторінка доставки – покращений вигляд */
.delivery-card ul {
    list-style: none;
    padding: 0;
}
.delivery-card li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.delivery-card li:last-child {
    border-bottom: none;
}
.delivery-card li i {
    width: 1.5rem;
    color: var(--primary);
    font-size: 1rem;
}
.delivery-card li span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-light);
}
.delivery-card li strong {
    color: var(--text);
}

/* ===== ПРИМУСОВО КРУГЛІ СОЦІАЛЬНІ ІКОНКИ ===== */
.social-floating a,
.mobile-social-icons a,
.about-social .social-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
    text-decoration: none;
    color: white !important;
    background: none;
    overflow: hidden;
    flex-shrink: 0;
}
.social-floating a i,
.mobile-social-icons a i,
.about-social .social-icon i {
    font-size: inherit !important;
    line-height: 1 !important;
}
.social-floating a:hover,
.mobile-social-icons a:hover,
.about-social .social-icon:hover {
    transform: scale(1.05);
}
/* Кольори фону для кожної іконки */
.social-floating .fa-tiktok,
.mobile-social-icons .fa-tiktok,
.about-social .fa-tiktok,
.social-floating .fab.fa-tiktok,
.mobile-social-icons .fab.fa-tiktok,
.about-social .fab.fa-tiktok {
    background: #000 !important;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
}
.social-floating .fa-instagram,
.mobile-social-icons .fa-instagram,
.about-social .fa-instagram,
.social-floating .fab.fa-instagram,
.mobile-social-icons .fab.fa-instagram,
.about-social .fab.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}
.social-floating .fa-telegram,
.mobile-social-icons .fa-telegram,
.about-social .fa-telegram,
.social-floating .fab.fa-telegram,
.mobile-social-icons .fab.fa-telegram,
.about-social .fab.fa-telegram {
    background: #0088cc !important;
}
/* Для мобільних трохи менші */
.mobile-social-icons a {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem;
}

/* ========== ФІНАЛЬНЕ ВИПРАВЛЕННЯ – КРУГЛІ СОЦІАЛЬНІ ІКОНКИ ========== */
/* Перебиваємо всі попередні стилі */
.social-floating a,
.mobile-social-icons a,
.about-social .social-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem !important;
    transition: transform 0.2s;
    text-decoration: none !important;
    color: white !important;
    background: none;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Конкретні кольори для кожної іконки */
.social-floating a .fa-tiktok,
.mobile-social-icons a .fa-tiktok,
.about-social .social-icon .fa-tiktok,
.social-floating a .fab.fa-tiktok,
.mobile-social-icons a .fab.fa-tiktok,
.about-social .social-icon .fab.fa-tiktok {
    background: #000 !important;
    text-shadow: 2px 2px 0 #ff0050, -2px -2px 0 #00f2ea;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

.social-floating a .fa-instagram,
.mobile-social-icons a .fa-instagram,
.about-social .social-icon .fa-instagram,
.social-floating a .fab.fa-instagram,
.mobile-social-icons a .fab.fa-instagram,
.about-social .social-icon .fab.fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

.social-floating a .fa-telegram,
.mobile-social-icons a .fa-telegram,
.about-social .social-icon .fa-telegram,
.social-floating a .fab.fa-telegram,
.mobile-social-icons a .fab.fa-telegram,
.about-social .social-icon .fab.fa-telegram {
    background: #0088cc !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

/* Ховер-ефект */
.social-floating a:hover,
.mobile-social-icons a:hover,
.about-social .social-icon:hover {
    transform: scale(1.05);
}

/* Мобільні трохи менші */
@media (max-width: 768px) {
    .social-floating a,
    .mobile-social-icons a,
    .about-social .social-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }
}

/* ===== ВИПРАВЛЕННЯ ДЛЯ КАРТОК ТОВАРІВ ===== */
/* Контейнер зображення – тепер правильних розмірів */
.product-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f5f5f5;
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Сітка товарів – адаптивна */
.products-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

/* Телефони (до 480px) – 2 колонки */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card {
        border-radius: 16px;
    }
    .product-image {
        height: 180px;
    }
    .product-card h3 {
        font-size: 14px;
        padding: 8px 8px 4px;
    }
    .short-desc {
        font-size: 12px;
        padding: 0 8px;
        -webkit-line-clamp: 1;
    }
    .price-block {
        padding: 0 8px 8px;
    }
    .price, .sale-price {
        font-size: 16px;
    }
    .product-actions {
        flex-direction: column;
        gap: 8px;
        padding: 0 8px 12px;
    }
    .btn-add-to-cart, .btn-order-telegram {
        padding: 8px 0;
        font-size: 12px;
    }
    .product-rating {
        padding: 0 8px 12px;
        font-size: 11px;
    }
}

/* Планшети (481px – 768px) – 2 колонки, більші картки */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-image {
        height: 220px;
    }
}

/* Десктоп (від 769px) – 3 колонки */
@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .product-image {
        height: 260px;
    }
}

/* ===== ВИПРАВЛЕННЯ БЕЙДЖІВ НА КАРТКАХ ТОВАРІВ ===== */
.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.out-of-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 2;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
/* Якщо є тільки один бейдж, він залишається зліва (для звичайного випадку) */
.out-of-stock:only-child {
    left: 12px;
    right: auto;
}
/* Для дуже маленьких екранів зменшуємо відступи */
@media (max-width: 480px) {
    .sale-badge,
    .out-of-stock {
        top: 6px;
        padding: 2px 6px;
        font-size: 10px;
    }
    .sale-badge {
        left: 6px;
    }
    .out-of-stock {
        right: 6px;
    }
}

/* ===== ВИПРАВЛЕННЯ БЕЙДЖІВ НА МОБІЛЬНИХ ===== */
@media (max-width: 480px) {
    .sale-badge,
    .out-of-stock {
        top: 6px;
        padding: 3px 8px;
        font-size: 10px;
        font-weight: 600;
    }
    .sale-badge {
        left: 6px;
    }
    .out-of-stock {
        right: 6px;
        left: auto;
    }
}

.product-image {
    position: relative;
    min-width: 0;
}

/* ===== ВИПРАВЛЕННЯ ДЛЯ СТОРІНКИ ТОВАРУ НА ПК ===== */
@media (min-width: 768px) {
    .product-details {
        display: flex !important;
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
        justify-content: center;
    }
    .product-gallery {
        flex: 1;
        max-width: 45%;
    }
    .product-info {
        flex: 1;
        max-width: 55%;
        padding: 0;
        text-align: left;
    }
    .product-title {
        font-size: 2rem;
        margin-top: 0;
    }
    .product-buttons {
        display: flex;
        flex-direction: row;
        gap: 16px;
        justify-content: flex-start;
    }
    .product-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}

/* ===== СТОРІНКА ТОВАРУ – ОПТИМІЗАЦІЯ ДЛЯ ПК ===== */
@media (min-width: 992px) {
    .product-details {
        display: flex;
        gap: 60px;
        align-items: flex-start;
    }
    .product-gallery {
        flex: 1.2;
        max-width: 50%;
    }
    .product-info {
        flex: 1.8;
        max-width: 50%;
        padding-right: 20px;
    }
    .product-title {
        font-size: 2.2rem;
        margin-top: 0;
    }
    .product-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .product-buttons {
        display: flex;
        gap: 20px;
        margin-top: 30px;
    }
    .product-buttons .btn {
        flex: 1;
        padding: 14px 24px;
        font-size: 1rem;
        text-align: center;
    }
}
@media (min-width: 1200px) {
    .product-gallery {
        max-width: 45%;
    }
    .product-info {
        max-width: 55%;
    }
    .product-buttons .btn {
        min-width: 220px;
        flex: 0 0 auto;
    }
}

/* ===== ФІНАЛЬНЕ НАЛАШТУВАННЯ БЕЙДЖІВ ===== */
@media (max-width: 480px) {
    .product-image {
        position: relative;
    }
    .sale-badge,
    .out-of-stock {
        position: absolute;
        left: 8px;
        display: inline-block !important;
        width: auto !important;
        max-width: 100px;
        padding: 3px 8px;
        border-radius: 20px;
        font-size: 10px;
        font-weight: 600;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        z-index: 2;
        background: none; /* скидаємо фон, щоб не накладався */
    }
    .sale-badge {
        top: 8px;
        background: var(--accent);
        color: #000;
    }
    .out-of-stock {
        top: 8px;
        background: #dc3545;
        color: white;
    }
    /* Якщо є знижка, то бейдж відсутності зсувається вниз */
    .sale-badge + .out-of-stock {
        top: 40px;
    }
}

/* ===== ПРИХОВУЄМО ТЕКСТ "В НАЯВНОСТІ" / "НЕМАЄ" НА ТЕЛЕФОНІ В КАРТКАХ ===== */
@media (max-width: 480px) {
    .product-card .stock-status {
        display: none !important;
    }
}

/* ===== НА ТЕЛЕФОНІ: ХОВАЄМО ТЕКСТ НАЯВНОСТІ В КАРТКАХ, ЗАЛИШАЄМО ТІЛЬКИ БЕЙДЖ ===== */
@media (max-width: 480px) {
    .product-card .stock-status,
    .product-card .in-stock,
    .product-card .out-of-stock:not(.badge) {
        display: none !important;
    }
    /* якщо бейдж має клас .out-of-stock, він залишиться (ми не ховаємо його) */
    .product-card .out-of-stock {
        display: inline-block !important;
    }
}

/* ===== ДОПОВНЕННЯ ДЛЯ СТОРІНКИ ТОВАРУ ===== */

/* 1. Кнопка входу для відгуку – стилізована */
.login-prompt-button {
    text-align: center;
    margin: 20px 0 30px;
}
.login-prompt-button .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
}
.login-prompt-button .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 2. Покращене вирівнювання кнопок на сторінці товару (ПК) */
@media (min-width: 768px) {
    .product-buttons {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 30px;
        justify-content: flex-start;
    }
    .product-buttons .btn {
        flex: 1;
        max-width: 280px;
        text-align: center;
        white-space: nowrap;
    }
    .product-details {
        gap: 60px;
        align-items: flex-start;
    }
    .product-gallery {
        flex: 1;
        max-width: 45%;
    }
    .product-info {
        flex: 1;
        max-width: 55%;
    }
}

/* 3. Для планшетів і телефонів – кнопки вертикально, на всю ширину */
@media (max-width: 767px) {
    .product-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .product-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .login-prompt-button .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* 4. Видалення зайвих відступів на ПК, щоб не було порожнього місця */
@media (min-width: 1024px) {
    .product-details {
        padding: 0 20px;
    }
    .product-info {
        padding-right: 40px;
    }
}

/* ===== СТОРІНКА ТОВАРУ – ОПТИМІЗАЦІЯ КНОПОК І ВИРІВНЮВАННЯ ===== */
.login-prompt-button {
    text-align: center;
    margin: 20px 0 30px;
}
.login-prompt-button .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s;
}
.login-prompt-button .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .product-buttons {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 30px;
        justify-content: flex-start;
    }
    .product-buttons .btn {
        flex: 1;
        max-width: 280px;
        text-align: center;
        white-space: nowrap;
    }
    .product-details {
        gap: 60px;
        align-items: flex-start;
    }
    .product-gallery {
        flex: 1;
        max-width: 45%;
    }
    .product-info {
        flex: 1;
        max-width: 55%;
    }
    .product-buttons .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }
}

@media (max-width: 767px) {
    .product-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .product-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .login-prompt-button .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .product-details {
        padding: 0 20px;
    }
    .product-info {
        padding-right: 40px;
    }
}

/* Стиль для неактивної кнопки "Додати в кошик" */
.btn-add-to-cart:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===== МОДАЛЬНЕ ВІКНО ===== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.cart-modal.active {
    display: flex;
}
.cart-modal-content {
    background: var(--surface);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.2s ease;
}
.cart-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.cart-modal-header i {
    font-size: 48px;
    color: #10b981;
}
.cart-modal-header h3 {
    font-size: 24px;
    margin: 0;
    color: var(--text);
}
.cart-modal-body p {
    margin-bottom: 24px;
    color: var(--text-light);
}
.cart-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.cart-modal-buttons .btn {
    flex: 1;
    text-align: center;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 480px) {
    .cart-modal-buttons {
        flex-direction: column;
    }
}

/* ===== ДОПОВНЕННЯ ДЛЯ МОДАЛЬНОГО ВІКНА ===== */
.cart-modal .btn-outline {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}
.cart-modal .btn-outline:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}
@media (max-width: 480px) {
    .cart-modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .cart-modal .btn {
        width: 100%;
        text-align: center;
    }
}