:root {
    --primary: #3b5266;
    --primary-hover: #2c3e4f;
    --text-main: #232b35;
    --text-muted: #5c6b73;
    --bg-body: #f4f6f8;
    --bg-card: #ffffff;
    --bg-input: #eef1f4;
    --accent-green: #10b981;
    --border: #d1d9e0;
    --border-hover: #a3b1be;
    --shadow: none;
    --radius: 0px;
    --navbar-height: 70px;
}
* {
    box-sizing: border-box;
    border-radius: 0px !important;
    box-shadow: none !important;
}
*:hover {
    transform: none !important;
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1200px;
    margin: 110px auto 60px !important;
    padding: 0 20px;
    flex: 1 0 auto;
    width: 100%;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: #1e293b;
    border-bottom: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.navbar-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.navbar-brand {
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.navbar-brand span {
    color: #38bdf8;
}
.search-box {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 30px;
}
.search-box form {
    width: 100%;
    max-width: 480px;
    display: flex;
}
.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #334155;
    border-right: none;
    outline: none;
    font-size: 0.9rem;
    color: #f1f5f9;
    background: #0f172a;
    transition: all 0.15s ease;
}
.search-box input:focus {
    border-color: var(--primary);
    background: #1e293b;
}
.search-box button {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
    padding: 0 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.search-box button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px !important;
}
.navbar-right .nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease;
}
.navbar-right .nav-link:hover {
    color: #f1f5f9;
}
.navbar-right .nav-icon {
    stroke: #94a3b8;
}
.navbar-right .nav-link:hover .nav-icon {
    stroke: #f1f5f9;
}
.nav-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}
.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: #f1f5f9;
    font-size: 28px;
    transition: color 0.15s ease;
}
.dropdown-btn:hover {
    color: #38bdf8;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}
.product-card-link {
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.15s ease;
}
.product-card-link:hover {
    border-color: var(--primary);
}
.product-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.product-card-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.3;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}
.image-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.price-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.price-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}
.store-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    max-width: 60%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-page-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.product-main {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 32px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
}
.product-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    height: 520px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}
.brand {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.offers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.offers-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-body);
    border: 1px solid var(--border);
}
.offer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-tag {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-green);
}
.offer-button {
    background: #475d73;
    color: #ffffff !important;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #475d73;
    transition: background 0.1s ease, border-color 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.offer-button:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
.fav-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
}
.fav-btn:hover {
    background: #eef1f4 !important;
    border-color: var(--border-hover) !important;
}
.sidebar {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: var(--bg-card);
    border-left: 2px solid var(--border);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar.active {
    right: 0;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}
.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.sidebar-close:hover {
    color: var(--text-main);
}
.sidebar-content {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-menu-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
    margin-bottom: 8px;
}
.sidebar-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar-content a:hover {
    background: var(--bg-body);
    border-color: var(--border);
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1999;
    display: none;
}
.sidebar-overlay.active {
    display: block;
}
.history-table-wrapper {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
}
th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef1f4;
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}
tr:nth-child(even) {
    background: #f8fafc;
}
tr:hover {
    background: #f1f5f9;
}
.chart-container {
    height: 340px;
    position: relative;
    width: 100%;
}
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}
.profile-sidebar {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-avatar-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.profile-username {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}
.profile-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.profile-edit-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.profile-edit-btn:hover {
    background: #eef1f4;
    border-color: var(--border-hover);
}
.profile-main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.profile-main-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.main-footer {
    flex-shrink: 0;
    background: #1e293b;
    border-top: 1px solid #0f172a;
    padding: 40px 0;
    width: 100%;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-brand {
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.footer-brand span {
    color: #38bdf8;
}
.footer-nav {
    display: flex;
    gap: 24px;
}
.footer-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.15s ease;
}
.footer-link:hover {
    color: #f1f5f9;
}
.footer-copy {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}
h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    margin: 0 0 20px;
}
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
h2 .icon {
    stroke: var(--primary);
}
.no-price {
    color: var(--text-muted);
}
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
}
.edit-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}
.edit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}
.save-btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
}
.save-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}
.content-area h2 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-main);
    margin: 0 0 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.stores-container {
    max-width: 1000px;
    margin: 110px auto 60px;
    padding: 0 20px;
}
.stores-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    height: 160px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.15s ease;
}
.store-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.store-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
}
.store-card span {
    font-weight: 700;
    font-size: 0.95rem;
}
@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr;
    }
    .offers-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .offer-button {
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        right: -85%;
    }
    .profile-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .stores-grid {
        grid-template-columns: 1fr;
    }
}
.contacts-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.contacts-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.contacts-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}
.contacts-header {
    margin-bottom: 40px;
}
.contacts-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.contacts-header h1 {
    margin: 0 0 14px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.contact-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 24px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-item:hover {
    border-color: var(--primary);
    background: #ffffff;
}
.contact-title {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.contact-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
}
.contact-item a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-word;
    transition: color 0.15s ease;
}
.contact-item a:hover {
    color: var(--primary);
}
@media (max-width: 768px) {
    .contacts-card {
        padding: 32px 24px;
    }
    .contacts-header h1 {
        font-size: 2rem;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.terms-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.terms-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px;
    position: relative;
}

.terms-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: var(--primary);
}

.terms-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.terms-header h1 {
    font-size: 2.4rem;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.terms-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.terms-section {
    margin-bottom: 26px;
}

.terms-section h2 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.terms-section p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.terms-section a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

.terms-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.privacy-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.privacy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
}

.privacy-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.privacy-header h1 {
    font-size: 2.4rem;
    margin: 0 0 10px;
}

.privacy-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.privacy-section {
    margin-bottom: 24px;
}

.privacy-section h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.privacy-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-footer {
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-prefix {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.auth-title {
    margin-bottom: 20px;
    text-align: center;
}

.auth-button {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.django-auth-form p {
    margin-bottom: 16px;
}

.django-auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #64748b;
}

.django-auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.django-auth-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.django-auth-form .errorlist {
    color: #ef4444;
    padding-left: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.auth-title {
    margin-bottom: 20px;
    text-align: center;
}

.auth-button {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.django-auth-form p {
    margin-bottom: 16px;
}

.django-auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #64748b;
}

.django-auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.django-auth-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.django-auth-form .errorlist {
    color: #ef4444;
    padding-left: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.django-auth-form .helptext {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.profile-page-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 20px;
}

.profile-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.profile-info-block h1 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.profile-info-block p {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-action-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--text-main) !important;
    border: 1px solid var(--border);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.1s ease;
}

.profile-action-btn:hover {
    background: #eef1f4;
    border-color: var(--border-hover);
}

.favorites-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.fav-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.fav-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fav-image-wrapper {
    width: 100%;
    height: 160px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.fav-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.no-photo {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.fav-content-block {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.fav-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.fav-buttons-group {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.fav-open-btn {
    flex: 1;
    background: #475d73;
    color: #ffffff !important;
    border: 1px solid #475d73;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.fav-open-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.fav-remove-btn {
    background: transparent;
    color: #dc2626 !important;
    border: 1px solid #fee2e2;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.fav-remove-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.empty-message {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .profile-page-wrapper {
        grid-template-columns: 1fr;
    }
}