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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container, .container * {
    animation: none !important;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    background: url('images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn-cart {
    display: block;
    width: 100%;
    background: #27ae60;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-cart:hover {
    background: #219a52;
}

.features {
    padding: 4rem 0;
    background: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.popular {
    padding: 4rem 0;
}

.popular h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.category-card {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: opacity 0.3s ease;
}

.category-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

.category-card:hover h3 {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantages {
    padding: 4rem 0;
    background: white;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.advantages ul {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
}

.advantages ul li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.advantages ul li:hover {
    background: white;
    border-left-color: #e74c3c;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    text-align: left;
}

.footer-contacts {
    text-align: right;
}

.footer-contacts p {
    margin: 0.3rem 0;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.scroll-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

footer p {
    margin: 0.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 2rem 0;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #2c3e50;
    color: white;
}

table tr:hover {
    background: #f8f9fa;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #2980b9;
}

.page-content {
    padding: 3rem 0;
    background: #f5f7fa;
    min-height: 100vh;
}

.page-content h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.page-content p {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.products-grid, .products-grid * {
    transition: none !important;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1rem;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    color: #3498db;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    min-height: 2.8em;
}

.card-meta {
    margin-bottom: 0.8rem;
}

.card-article {
    color: #888;
    font-size: 0.8rem;
}

.card-price {
    color: #e74c3c;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-card .btn-cart {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card .btn-cart:hover {
    background: #2980b9;
}

.products-grid, .products-grid * {
    transition: none !important;
}

.search-box {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-section {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.filter-section h3 {
    margin-bottom: 1rem;
}

.filter-section select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Стили корзины */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
}

.empty-cart h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.cart-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cart-items {
    flex: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-item-quantity button:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.cart-item-quantity span {
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-item-remove:hover {
    background: #c0392b;
}

.cart-summary {
    width: 300px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #7f8c8d;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-checkout {
    width: 100%;
    background: #27ae60;
    margin-bottom: 0.5rem;
}

.btn-checkout:hover {
    background: #219a52;
}

.btn-clear {
    width: 100%;
    background: #95a5a6;
}

.btn-clear:hover {
    background: #7f8c8d;
}

/* Форма оформления */
.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.checkout-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.checkout-form h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #3498db;
}

.payment-option input:checked + .payment-label {
    color: #3498db;
}

.payment-option:has(input:checked) {
    border-color: #3498db;
    background: #ebf5fb;
}

.payment-label small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.card-payment {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.order-total {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: right;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.order-total h3 {
    color: white;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.btn-back {
    flex: 1;
    background: #95a5a6;
}

.btn-pay {
    flex: 2;
    background: #27ae60;
}

.btn-pay:hover {
    background: #219a52;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-message h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.success-message p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.success-message .btn {
    margin-top: 1.5rem;
    background: #3498db;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-container {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
        position: static;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-total {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
}

.product-detail {
    display: flex;
    gap: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 1rem;
}

.product-detail-image {
    flex: 0 0 400px;
}

.product-detail-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    margin-bottom: 0.5rem;
}

.product-category {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.info-value.stock {
    color: #27ae60;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid #eee;
}

.price-label {
    color: #666;
    font-size: 1rem;
}

.product-price {
    color: #e74c3c;
    font-size: 2.5rem;
    font-weight: bold;
}

.product-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex: 1;
}

.product-actions {
    margin-top: auto;
}

.product-actions .btn-cart {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-actions .btn-cart:hover {
    background: #2980b9;
    transform: scale(1.02);
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-info h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-detail-info .article {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    display: inline-block;
}

.product-detail-info .category-label {
    color: #3498db;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.product-detail-info .price {
    color: #e74c3c;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 1rem 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.product-detail-info .description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1rem;
}

.product-actions {
    margin-top: auto;
}

.product-actions .btn-cart {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-actions .btn-cart:hover {
    background: #2980b9;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    .product-detail-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
}

.cart-notification::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: white;
    color: #27ae60;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Auth Page Styles */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 1.2rem;
    text-align: center;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s;
}

.auth-tab.active {
    background: white;
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.auth-tab:hover:not(.active) {
    background: #eee;
}

.auth-form {
    padding: 2rem;
}

.auth-form h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.auth-form .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.auth-error {
    background: #fee;
    color: #c0392b;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.auth-error.show {
    display: block;
}

.auth-success {
    background: #eafaf1;
    color: #27ae60;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.auth-success.show {
    display: block;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #7f8c8d;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #7f8c8d;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
}

.user-menu {
    position: relative;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f8f9fa;
}

.user-dropdown .role-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: #3498db;
    color: white;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 2px;
}

.pagination button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    padding: 0.6rem 1rem;
    color: #7f8c8d;
}

/* Filter Section */
.filters-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.filters-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    width: calc(50% - 15px);
}

.price-range span {
    color: #7f8c8d;
}

.btn-apply-filters {
    width: 100%;
    background: #3498db;
    margin-top: 0.5rem;
}

.btn-apply-filters:hover {
    background: #2980b9;
}

.btn-reset-filters {
    width: 100%;
    background: #95a5a6;
    margin-top: 0.5rem;
}

.btn-reset-filters:hover {
    background: #7f8c8d;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-count {
    color: #7f8c8d;
}

.live-search {
    position: relative;
}

.live-search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.live-search::before {
    content: '🔍';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .filters-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        order: -1;
    }
}
