/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5bc0ff;
    --primary-hover: #3ba8ff;
    --secondary-color: #6b7280;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --background: #ffffff;
    --foreground: #1f2937;
    --muted: #6b7280;
    --muted-foreground: #9ca3af;
    --border: #e5e7eb;
    --input: #ffffff;
    --ring: #5bc0ff;

    --radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    font-family: inherit;
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--border);
    color: var(--foreground);
}

.btn-white {
    color: white;
    border-color: white;
}

.btn-white:hover:not(:disabled) {
    background-color: white;
    color: var(--primary-color);
}

.btn-icon {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

/* Header */
.header {
    border-bottom: 1px solid var(--border);
    background: white;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
}

.top-bar-left {
    display: flex;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon {
    width: 1rem;
    height: 1rem;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--foreground);
}

.logo-text p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--muted);
}

.search-container {
    flex: 1;
    max-width: 32rem;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted);
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--input);
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgb(91 192 255 / 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation {
    padding: 0.75rem 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-icon {
    width: 1rem;
    height: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #e6f7ff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.categories h3 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.category-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.category-icon.ford {
    background-color: var(--primary-color);
}

.category-icon.peugeot {
    background-color: var(--secondary-color);
}

.category-icon.citroen {
    background-color: var(--danger-color);
}

.category-icon.fiat {
    background-color: var(--success-color);
}

.category-card h4 {
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Popular Products */
.popular-products {
    padding: 4rem 0;
    background-color: #f9fafb;
}

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

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

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.product-badge.secondary {
    background-color: var(--secondary-color);
    right: 0.5rem;
    left: auto;
}

.product-content {
    padding: 1rem;
}

.product-article {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star {
    width: 1rem;
    height: 1rem;
    fill: #fbbf24;
    color: #fbbf24;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.125rem;
    font-weight: 700;
}

.price-old {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: line-through;
}

.product-actions {
    width: 100%;
}

/* Advantages */
.advantages {
    padding: 4rem 0;
}

.advantages h3 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.advantage-item {
    text-align: center;
}

.advantage-icon {
    width: 4rem;
    height: 4rem;
    background-color: #e1f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.advantage-icon svg {
    width: 2rem;
    height: 2rem;
}

.advantage-item h4 {
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 2rem;
    height: 2rem;
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contacts .contact-item {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .main-header {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        max-width: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Filters Panel */
.filters-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.filters-header h3 {
    margin-bottom: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.filter-select,
.filter-input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--input);
    transition: border-color 0.2s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgb(91 192 255 / 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.filter-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--border);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--foreground);
}

.filter-badge button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.filter-badge button:hover {
    color: var(--danger-color);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.toolbar-left {
    font-size: 0.875rem;
    color: var(--muted);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--input);
    min-width: 200px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-toggle button {
    border: none;
    border-radius: 0;
    padding: 0.5rem;
    background: transparent;
    color: var(--muted);
    transition: all 0.2s ease;
}

.view-toggle button:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.view-toggle button:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.view-toggle button.active {
    background-color: var(--primary-color);
    color: white;
}

.view-toggle button:hover:not(.active) {
    background-color: var(--border);
}

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

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--foreground);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--border);
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Product List View */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-grid.list-view .product-card {
    display: flex;
    gap: 1rem;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-grid.list-view .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid.list-view .product-actions {
    align-self: flex-start;
    width: auto;
}

/* Cart Page */
.empty-cart {
    text-align: center;
    padding: 4rem 0;
}

.empty-cart-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-cart-icon {
    width: 6rem;
    height: 6rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    margin-bottom: 1rem;
}

.empty-cart p {
    margin-bottom: 2rem;
    color: var(--muted);
}

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

.cart-header h1 {
    margin-bottom: 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.cart-item-image {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cart-item-info h4 {
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

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

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background-color: var(--border);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display input {
    padding: 0.5rem 1rem;
    min-width: 3rem;
    max-width: 10rem;
    text-align: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart-item-price {
    text-align: right;
}

.cart-item-total {
    font-weight: 700;
    font-size: 1.125rem;
}

.cart-item-unit {
    font-size: 0.875rem;
    color: var(--muted);
}

.order-summary {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.summary-card h3 {
    margin-bottom: 1.5rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.summary-divider {
    height: 1px;
    background-color: var(--border);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Responsive cart */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 12rem;
    }

    .cart-item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .order-summary {
        position: static;
    }
}

/* Auth Pages */
.auth-page {
    background-color: #f9fafb;
}

.auth-nav {
    display: flex;
    gap: 1.5rem;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--muted);
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--input);
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgb(91 192 255 / 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--foreground);
}

.password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

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

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.btn-loading {
    display: none;
}

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .btn-loading {
    display: inline;
}

/* Form validation styles */
.form-group.error input {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .error-message {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* About Page */
.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-achievements {
    margin-bottom: 4rem;
}

.about-achievements h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.achievement-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: box-shadow 0.2s ease;
}

.achievement-card:hover {
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 4rem;
    height: 4rem;
    background-color: #e1f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.achievement-icon svg {
    width: 2rem;
    height: 2rem;
}

.achievement-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.achievement-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.about-values {
    margin-bottom: 4rem;
}

.about-values h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 5rem;
    height: 5rem;
    background-color: #e1f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.value-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.value-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-item p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-team {
    margin-bottom: 4rem;
}

.about-team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.team-member {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: box-shadow 0.2s ease;
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member .experience {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.about-mission {
    text-align: center;
    background-color: #f9fafb;
    padding: 4rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 4rem;
}

.about-mission h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-mission p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-content h2 {
        font-size: 2rem;
    }

    .about-achievements h2,
    .about-values h2,
    .about-team h2,
    .about-mission h2 {
        font-size: 2rem;
    }

    .achievements-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-mission {
        padding: 2rem 1rem;
    }

    .about-mission p {
        font-size: 1rem;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }

.text-white { color: white; }
.text-gray-500 { color: var(--muted); }
.text-gray-600 { color: var(--secondary-color); }
.text-red-500 { color: var(--danger-color); }
.text-green-500 { color: var(--success-color); }
.text-blue-500 { color: var(--info-color); }

/* Contacts Page Styles */
.contacts-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contacts-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contacts-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    padding: 4rem 0;
    background: var(--gray-50);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.contact-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-form-section {
    padding: 4rem 0;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form-full {
    grid-column: 1 / -1;
}

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

.contact-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-submit {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-form-submit:hover {
    background: var(--primary-dark);
}

.contact-form-submit:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.contact-additional {
    padding: 4rem 0;
    background: var(--gray-50);
}

.contact-additional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-map {
    background: var(--gray-200);
    height: 400px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.contact-quick {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-quick-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-quick-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.contact-quick-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.contact-quick-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.working-hours {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.working-hours h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.working-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.working-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.working-hours-item:last-child {
    border-bottom: none;
}

.working-hours-day {
    font-weight: 500;
    color: var(--gray-700);
}

.working-hours-time {
    color: var(--gray-600);
}

/* Responsive adjustments for contacts page */
@media (max-width: 768px) {
    .contacts-hero h1 {
        font-size: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-additional-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-map {
        height: 300px;
    }
}

/* Product Page Styles */
.product-page {
    padding: 2rem 0;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.image-zoom:hover {
    background: white;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    background: white;
    padding: 0;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.product-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 1rem;
}

.brand-logo {
    width: 24px;
    height: 24px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.rating-text {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 1.2rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.price-discount {
    background: var(--error-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.product-stock {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stock-status.in-stock {
    color: var(--success-color);
}

.stock-status.out-of-stock {
    color: var(--error-color);
}

.stock-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls label {
    font-weight: 500;
    color: var(--gray-700);
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-btn {
    background: var(--gray-100);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--gray-200);
}

.quantity-wrapper input {
    border: none;
    padding: 0.5rem;
    text-align: center;
    width: 60px;
    font-size: 1rem;
}

.quantity-wrapper input:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.wishlist-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.wishlist-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.feature svg {
    color: var(--success-color);
}

/* Product Details Tabs */
.product-details {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.details-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.tab-pane h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--gray-800);
}

.tab-pane p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tab-pane ul {
    color: var(--gray-700);
    line-height: 1.6;
    padding-left: 1.5rem;
}

.tab-pane li {
    margin-bottom: 0.5rem;
}

/* Specifications */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: var(--gray-700);
}

.spec-value {
    color: var(--gray-900);
}

/* Compatibility */
.compatibility-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compatibility-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compatibility-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.compatibility-item strong {
    color: var(--gray-900);
}

.compatibility-item span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Reviews */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.reviews-count {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

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

.review-author {
    font-weight: 600;
    color: var(--gray-900);
}

.review-date {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.review-text {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Responsive adjustments for product page */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-main-image img {
        height: 300px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-current {
        font-size: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .details-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: none;
        min-width: 120px;
    }

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

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}
