/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A92DB;
    --primary-dark: #0874B3;
    --primary-light: #4DB3E8;
    --secondary-color: #2b4257;
    --secondary-dark: #1a2835;
    --accent-color: #FF6B35;
    --accent-light: #FF8C61;
    --text-color: #1b130e;
    --text-light: #6a737f;
    --text-lighter: #959ca4;
    --bg-light: #f8fafb;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0A92DB 0%, #0874B3 50%, #2b4257 100%);
    --border-color: #dfe0e3;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

body {
    font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* Header Top Bar */
.header-top {
    background: var(--secondary-dark);
    color: white;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-contacts {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-contact-item:hover {
    color: white;
}

.header-contact-item svg {
    flex-shrink: 0;
    opacity: 0.9;
    width: 16px;
    height: 16px;
}

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

.header-top-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-top-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0;
    flex-shrink: 0;
}


.header-top-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: var(--transition);
}

.header-top-link:hover {
    color: white;
}

.header-top-link:hover::after {
    width: 100%;
}

.header-schedule {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Header Main */
.header-main {
    background: var(--bg-white);
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    min-width: 0;
}

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

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

.logo h1 {
    font-size: 1.625rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Auth Pages */
.auth-page {
    padding: 40px 0 80px;
    background: radial-gradient(circle at top, rgba(10, 146, 219, 0.08), transparent 55%);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.auth-intro-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.auth-intro-text {
    font-size: 0.98rem;
    color: var(--text-light);
    max-width: 480px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px 32px 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-light);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(10, 146, 219, 0.12);
}

.auth-submit {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-weight: 600;
}

.auth-footer-links {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.field-error,
.form-errors {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .auth-intro {
        text-align: left;
    }
}

/* Header Cart Button */
.header-cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.header-cart-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-cart-btn svg {
    width: 20px;
    height: 20px;
}

.btn-header-contact {
    white-space: nowrap;
    padding: 0.75rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-user-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.header-user-favorites {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid var(--border-color);
    color: var(--text-lighter);
    text-decoration: none;
    transition: var(--transition);
}

.header-user-favorites:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-header-auth {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-light);
}

.mobile-contact-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.mobile-contact-item svg {
    flex-shrink: 0;
}

/* Search Container */
.search-container {
    position: relative;
    width: 320px;
    min-width: 200px;
    flex-shrink: 1;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text-color);
    transition: var(--transition);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    color: var(--text-lighter);
    pointer-events: none;
    transition: var(--transition);
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 146, 219, 0.1);
}

.search-input::placeholder {
    color: var(--text-lighter);
}

.search-wrapper {
    position: relative;
}

.search-loading {
    position: absolute;
    right: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

.search-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 600px;
    overflow-y: auto;
    z-index: 10000;
    min-width: 450px;
}

.search-results-section {
    padding: 0;
}

.search-results-title {
    padding: 0.875rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-lighter);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-title svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.search-result-item {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border-bottom: 1px solid var(--bg-light);
}

.search-result-category {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-category:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.search-result-product {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.search-result-product:hover {
    background: var(--bg-light);
    transform: translateX(3px);
}

.search-result-product:last-child {
    border-bottom: none;
}

.search-product-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.search-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.search-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
}

.search-product-image-placeholder svg {
    width: 28px;
    height: 28px;
}

.search-product-info {
    flex: 1;
    min-width: 0;
}

.search-product-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-product:hover .search-product-name {
    color: var(--primary-color);
}

.search-product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
    flex-wrap: wrap;
}

.search-product-article {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}

.search-product-brand {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.search-product-price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.search-results-footer {
    padding: 1rem 1.25rem;
    border-top: 2px solid var(--border-color);
    background: var(--bg-light);
}

.search-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.search-all-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.search-all-link svg {
    transition: var(--transition);
}

.search-all-link:hover svg {
    transform: translateX(3px);
}

/* Search Results Page */
.search-results-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.search-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.search-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-page-query {
    font-size: 1.1rem;
    color: var(--text-light);
}

.search-page-query strong {
    color: var(--primary-color);
    font-weight: 700;
}

.search-page-form {
    margin-bottom: 3rem;
}

.search-form-large {
    max-width: 800px;
    margin: 0 auto;
}

.search-form-wrapper {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}

.search-form-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

.search-form-input::placeholder {
    color: var(--text-lighter);
}

.search-form-button {
    padding: 1rem 2rem;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.search-form-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-section-title svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.search-categories-section {
    margin-bottom: 3rem;
}

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

.search-category-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.search-category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.search-category-image {
    width: 100%;
    height: 150px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.search-category-image-placeholder {
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-category-name {
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    transition: var(--transition);
}

.search-category-card:hover .search-category-name {
    color: var(--primary-color);
}

.search-products-section {
    margin-bottom: 3rem;
}

.search-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-product-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.search-product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.search-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-product-image-wrapper {
    width: 100%;
    height: 250px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.search-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: var(--transition);
}

.search-product-card:hover .search-product-image {
    transform: scale(1.05);
}

.search-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
}

.search-product-info {
    padding: 1.5rem;
}

.search-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-product-brand {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.search-product-article {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
}

.search-product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.search-product-price-on-request {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

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

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination-link:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination-page:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* No Results / Empty State */
.search-no-results,
.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 3rem auto;
}

.search-no-results svg,
.search-empty-state svg {
    color: var(--text-lighter);
    margin-bottom: 2rem;
}

.search-no-results h2,
.search-empty-state h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.search-no-results p,
.search-empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.search-no-results strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Header Responsive Styles */
@media (max-width: 1400px) {
    .header-contacts {
        gap: 1rem;
    }

    .header-contact-item {
        font-size: 0.75rem;
    }

    .header-top-links {
        gap: 0.875rem;
    }

    .header-top-link {
        font-size: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .header-left {
        gap: 2rem;
    }

    .search-container {
        width: 280px;
    }

    .nav {
        gap: 1.5rem;
    }

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

    .header-top-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 1024px) {
    .header-left {
        gap: 1.5rem;
    }

    .search-container {
        width: 240px;
        min-width: 180px;
    }

    .nav {
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .btn-header-contact {
        padding: 0.625rem 1.125rem;
        font-size: 0.85rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

/* Categories Section */
.categories-section {
    background: var(--bg-light);
    position: relative;
}

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

.category-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
    z-index: 1;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 146, 219, 0.05) 0%, rgba(43, 66, 87, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover .category-image::before {
    opacity: 1;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.category-card:hover .category-image::after {
    opacity: 1;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: var(--transition);
    filter: brightness(1) saturate(1);
    background: transparent;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.15);
    padding: 1rem;
}

.category-image-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-placeholder svg {
    opacity: 0.8;
    width: 80px;
    height: 80px;
    transition: var(--transition);
}

.category-card:hover .category-image-placeholder svg {
    transform: scale(1.1);
    opacity: 1;
}

.category-info {
    padding: 1.75rem 2rem;
    text-align: center;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

/* Clients Section */
.clients-section {
    background: var(--bg-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.client-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 146, 219, 0.1), transparent);
    transition: var(--transition);
}

.client-card:hover::before {
    left: 100%;
}

.client-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.client-logo {
    max-width: 160px;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-placeholder {
    width: 90px;
    height: 90px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-md);
}

.client-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.client-city {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    color: white;
    padding: 4rem 0 1.5rem;
    position: relative;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: 0.75rem;
    opacity: 0.85;
    line-height: 1.8;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.85;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Empty States */
.no-categories,
.no-clients {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-top-links {
        display: none;
    }

    .header-main {
        padding: 0.75rem 0;
    }

    .header-content {
        gap: 1rem;
    }

    .header-left {
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav {
        display: none;
    }

    .search-container {
        display: none;
    }

    .header-cart-btn {
        width: 40px;
        height: 40px;
    }

    .btn-header-contact {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
    }

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

    .cta-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-info {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Catalog Page */
.catalog-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.catalog-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.catalog-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.category-children-count {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-top: 0.5rem;
    font-weight: 500;
}

.brands-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.brand-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 146, 219, 0.1), transparent);
    transition: var(--transition);
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-card:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.brand-card:hover .brand-name {
    color: var(--primary-color);
}

/* Category Detail Page */
.category-page {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: var(--text-lighter);
}

.category-header {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.category-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.category-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Sidebar */
.category-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-section {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.checkbox-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.range-filter {
    display: flex;
    gap: 0.5rem;
}

.range-filter input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.btn-apply-filters {
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-reset-filters {
    display: block;
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-reset-filters:hover {
    color: var(--primary-color);
}

/* Main Content */
.category-content {
    min-width: 0;
}

.child-categories-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-count {
    display: none !important;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-color);
}

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

.child-category-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 0;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.child-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.child-category-image {
    width: 100%;
    height: 200px;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.child-category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.child-category-card:hover .child-category-image::before {
    opacity: 1;
}

.child-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.child-category-card:hover .child-category-image img {
    transform: scale(1.1);
}

.child-category-image svg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    opacity: 0.5;
}

.child-category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    padding: 1.5rem 1rem;
    transition: var(--transition);
}

.child-category-card:hover .child-category-name {
    color: var(--primary-color);
}

/* Products Section */
.products-section {
    margin-top: 3rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    font-size: 0.95rem;
    color: var(--text-light);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.products-sort label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover {
    border-color: var(--primary-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 146, 219, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    transition: opacity 0.3s ease;
}

#products-container {
    transition: opacity 0.3s ease;
}

#products-container.htmx-swapping {
    opacity: 0.6;
}

#products-container.htmx-request {
    opacity: 0.6;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
}

.product-image-placeholder svg {
    opacity: 0.5;
}

.product-brand-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-article {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.product-price.price-on-request {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
}

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

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    background: var(--bg-white);
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        position: static;
        max-height: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .child-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Product Images Gallery */
.product-images-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

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

.main-image-container {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-width: 480px;
    margin: 0 auto;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.main-image-wrapper:hover .main-image {
    transform: scale(1.05);
}

.image-zoom-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-wrapper:hover .image-zoom-hint {
    opacity: 1;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.thumbnail-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 146, 219, 0.2);
}

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

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: radial-gradient(circle at 0 0, rgba(10, 146, 219, 0.12), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(43, 66, 87, 0.18), transparent 55%),
                var(--bg-light);
    border-radius: var(--border-radius-lg);
    color: var(--text-lighter);
    padding: 2rem;
    border: 1px dashed rgba(149, 156, 164, 0.4);
}

.product-image-placeholder svg {
    margin-bottom: 1rem;
}

.product-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

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

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-sm);
}

.product-favorite-btn {
    border: none;
    background: var(--bg-light);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--text-lighter);
    transition: var(--transition);
}

.product-favorite-btn:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.price-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.price-valid {
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-trust-section {
    margin-top: 3rem;
}

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

.trust-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.trust-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.trust-card ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-contacts a {
    color: var(--primary-color);
    text-decoration: none;
}

.trust-contacts a:hover {
    text-decoration: underline;
}

.callback-modal {
    border: none;
    border-radius: var(--border-radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 0;
    box-shadow: var(--shadow-md);
}

.callback-form {
    padding: 1.75rem 1.75rem 1.5rem;
}

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

.callback-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.callback-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.callback-field span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.callback-field input,
.callback-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.callback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.callback-privacy {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.callback-privacy a {
    color: var(--primary-color);
}

.callback-close {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .product-trust-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    isolation: isolate;
    transform: none !important;
    will-change: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.lightbox-modal:hover .lightbox-close,
.lightbox-modal:hover .lightbox-prev,
.lightbox-modal:hover .lightbox-next {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 100003;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100001;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 100002;
}

.lightbox-counter {
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.product-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-brand span {
    color: var(--text-lighter);
}

.brand-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.brand-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.meta-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.meta-label {
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    color: var(--text-color);
    font-weight: 600;
}

.product-price-section {
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.9;
    color: var(--primary-color);
}

.price-note {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.price-valid {
    font-size: 0.75rem;
    opacity: 0.8;
    color: var(--text-light);
}

.price-on-request {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
}

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

.product-actions-primary .btn {
    width: 100%;
    justify-content: center;
}

.product-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.product-actions-secondary .btn {
    flex: 1 1 0;
    min-width: 180px;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-order-callback {
    box-shadow: var(--shadow-md);
}

.btn-order-callback:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-added-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.product-added-actions .btn {
    flex: 1 1 0;
    min-width: 180px;
}

.product-description {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.product-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.description-content {
    color: var(--text-color);
    line-height: 1.8;
}

/* Tabs Section */
.product-tabs-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.tabs-container {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.75rem;
}

.tabs-header {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(10, 146, 219, 0.06);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tabs-content {
    min-height: 200px;
}

.tab-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specifications */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.spec-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    transition: var(--transition);
    position: relative;
    align-items: center;
    border-top: 1px solid rgba(223, 224, 227, 0.6);
}

.spec-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    padding-right: 1rem;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
}

.spec-item:nth-child(odd) {
    background: var(--bg-light);
}

.spec-item:hover {
    background: #f0f4f7;
}

.no-specs {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-size: 1.1rem;
}

/* Documents & Schematics */
.documents-list,
.schematics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item,
.schema-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 2px solid transparent;
}

.document-item:hover,
.schema-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.document-item svg:first-child,
.schema-item svg:first-child {
    color: var(--primary-color);
    flex-shrink: 0;
}

.document-item span,
.schema-item span {
    flex: 1;
    font-weight: 500;
}

.document-item svg:last-child,
.schema-item svg:last-child {
    color: var(--text-light);
    flex-shrink: 0;
}

/* Delivery Options */
.delivery-options-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delivery-option {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.delivery-option h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.delivery-option p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

/* Similar Products */
.similar-products-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

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

.similar-product-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.similar-product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.similar-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.similar-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

/* Responsive Design for Product Detail */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images-section {
        position: static;
    }

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

@media (max-width: 768px) {
    .product-detail-page {
        padding: 1rem 0 2rem;
    }

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

    .price-value {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    .tabs-header {
        gap: 0.25rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

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

/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.cart-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.cart-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.cart-subtitle strong {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-header-continue {
    white-space: nowrap;
    margin-top: 0.5rem;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer !important;
}

.btn-header-continue:hover {
    text-decoration: none !important;
}

.btn-header-continue:active {
    text-decoration: none !important;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-top: 2rem;
}

/* Cart Items */
.cart-items-section {
    min-width: 0;
}

.cart-items-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-items-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

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

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.cart-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cart-item.updating {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.cart-item.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
        max-height: 0;
        padding: 0;
        margin: 0;
        border: none;
    }
}

.cart-item.added {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cart-item-image {
    width: 140px;
    height: 140px;
    min-width: 140px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.cart-item-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name a:hover {
    color: var(--primary-color);
}

.cart-item-price-unit {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.cart-item-price-unit .price-label {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.cart-item-price-unit .price-value {
    font-weight: 600;
    color: var(--text-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Quantity Controls */
.cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-label {
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-white);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 0.25rem;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Item Total */
.cart-item-total {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.total-label {
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.total-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.item-total-value {
    font-weight: 800;
    font-size: 1.5rem;
}

/* Remove Button */
.cart-item-remove {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-lighter);
    cursor: pointer;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    margin-left: auto;
    align-self: flex-start;
}

.cart-item-remove:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: #ff4444;
    color: #ff4444;
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.cart-item-remove:active {
    transform: scale(0.95) rotate(90deg);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.summary-header {
    background: var(--bg-gradient);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.summary-icon {
    opacity: 0.9;
}

.summary-content {
    padding: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.summary-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.summary-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 700;
}

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

.summary-total {
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.summary-total .summary-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.summary-value-total {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.summary-value-total .price-value {
    font-weight: 800;
}

.summary-actions {
    padding: 0 2rem 2rem;
    margin-top: 1.5rem;
}

.btn-checkout {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.125rem 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 3rem auto;
}

.empty-cart-icon {
    color: var(--text-lighter);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.empty-cart-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-cart-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 100000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-success {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.toast-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content svg {
    flex-shrink: 0;
    color: currentColor;
}

.toast-success .toast-content {
    color: #10b981;
}

.toast-error .toast-content {
    color: #ef4444;
}

.toast-message {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Add to Cart Button States */
.btn-add-to-cart {
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-add-to-cart.added {
    background: #10b981;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Cart Counter in Header */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design for Cart */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-summary {
        position: static;
    }

    .cart-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-header-continue {
        margin-top: 0;
    }

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

    .cart-item-image {
        width: 100%;
        height: 200px;
        min-width: auto;
    }

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

    .cart-item-remove {
        align-self: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .catalog-title {
        font-size: 2rem;
    }

    .catalog-subtitle {
        font-size: 1rem;
    }

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

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

    .cart-title {
        font-size: 2rem;
    }

    .cart-header-content {
        flex-direction: column;
    }

    .btn-header-continue {
        width: 100%;
        justify-content: center;
    }

    .cart-item {
        padding: 1rem;
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }

    .cart-item-name {
        font-size: 1.1rem;
    }

    .cart-item-controls {
        width: 100%;
    }

    .total-value-wrapper {
        font-size: 1.25rem;
    }

    .item-total-value {
        font-size: 1.25rem;
    }

    .summary-header {
        padding: 1.25rem 1.5rem;
    }

    .summary-content {
        padding: 1.5rem;
    }

    .summary-actions {
        padding: 0 1.5rem 1.5rem;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
