/* Elite sayt uslublari (base.html dan ko'chirilgan, 2026-10-16) */
:root {
    --primary: #2d34ba;
    --primary-dark: #22289a;
    --primary-light: #eef0ff;
    --secondary: #2d2f36;
    --dark: #1a1c23;
    --light: #f8fafc;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    overflow-x: hidden;
}

/* Modern Navbar */
.navbar-modern {
    background: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(45,52,186,0.1);
}

.navbar-main {
    padding: 15px 0;
    background: white;
}

.navbar-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

/* Search Box */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 52, 186, 0.1);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.search-box button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Live Search Results */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 8px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border-top: 3px solid var(--primary);
}

.search-suggestions.show {
    display: block;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 18px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 30px;
    font-size: 14px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(45, 52, 186, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(45, 52, 186, 0.1);
}

/* Dropdown Menu */
.dropdown-menu-premium {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    padding: 12px 0;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary);
}

.nav-item:hover .dropdown-menu-premium {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item-premium i {
    width: 24px;
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.2s;
}

.dropdown-item-premium:hover {
    background: rgba(45, 52, 186, 0.05);
    color: var(--primary);
    padding-left: 28px;
}

.dropdown-item-premium:hover i {
    transform: translateX(3px);
}

.dropdown-divider-premium {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-header-premium {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 10px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s;
}

.language-btn:hover {
    border-color: var(--primary);
    background: rgba(45,52,186,0.05);
    color: var(--primary);
}

.language-btn i {
    font-size: 12px;
    color: var(--primary);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
    border: 1px solid var(--border);
}

.language-switcher:hover .language-dropdown,
.language-switcher.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    display: block;
    padding: 10px 20px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.language-item:hover {
    background: rgba(45,52,186,0.05);
    color: var(--primary);
}

.language-item.active {
    background: rgba(45,52,186,0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header .logo {
    font-size: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.2s;
}

.mobile-nav-header:hover {
    background: rgba(45,52,186,0.05);
    color: var(--primary);
}

.mobile-nav-header i {
    transition: transform 0.3s;
    font-size: 12px;
    color: var(--primary);
}

.mobile-nav-header.open i {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    background: rgba(45,52,186,0.03);
    padding: 5px 0;
}

.mobile-nav-submenu.open {
    display: block;
}

.mobile-nav-submenu a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.mobile-nav-submenu a:hover {
    background: rgba(45,52,186,0.05);
    color: var(--primary);
    padding-left: 40px;
}

.mobile-simple-link {
    display: block;
    padding: 14px 20px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.mobile-simple-link:hover {
    background: rgba(45,52,186,0.05);
    color: var(--primary);
}

.mobile-search {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.mobile-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 52, 186, 0.1);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
    }
    .nav-links {
        display: none;
    }
    .language-switcher {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 35px !important;
    }
    .search-box input {
        padding: 10px 15px;
        font-size: 13px;
    }
    .search-box button {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* Footer Styles */
.footer {
    background: #f1f5f9;
    color: #1e293b;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
}

.footer .container {
    /* Footer asosiy kontent bilan bir xil kenglikda (avval max-width: 100% edi - katta monitorlarda cho'zilardi) */
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-description {
    color: #475569;
    line-height: 1.6;
    margin: 15px 0 20px;
    font-size: 14px;
    max-width: 90%;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #2d34ba;
    color: white;
    transform: translateY(-3px);
}

.footer-links-wrapper {
    display: flex;
    gap: 60px;
    flex: 1.2;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links-col {
    min-width: 140px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #2d34ba;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
    display: inline-block;
}

.footer-links a:hover {
    color: #2d34ba;
    transform: translateX(5px);
}

.footer-contact {
    flex: 0.8;
    min-width: 240px;
    margin-bottom: 30px;
}

.footer-contact-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #2d34ba;
    border-radius: 2px;
}

.footer-contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-contact-list li {
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.footer-contact-list i {
    width: 20px;
    font-size: 14px;
    color: #2d34ba;
    flex-shrink: 0;
}

.footer-hr {
    margin: 30px 0 25px;
    background: #cbd5e1;
    height: 1px;
    border: none;
}

.copyright {
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 992px) {
    .footer-row {
        flex-direction: column;
        gap: 30px;
    }
    .footer-brand {
        text-align: left;
    }
    .footer-description {
        max-width: 100%;
    }
    .footer-links-wrapper {
        justify-content: flex-start;
        gap: 50px;
    }
    .footer-contact {
        text-align: left;
    }
    .footer-contact-list li {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }
    .footer .container {
        padding: 0 16px;
    }
    .footer-logo img {
        height: 35px;
    }
    .footer-description {
        font-size: 13px;
    }
    .footer-links-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .footer-links-col {
        text-align: left;
    }
    .footer-title {
        text-align: left;
    }
    .footer-title::after {
        left: 0;
        transform: none;
    }
    .footer-links {
        text-align: left;
    }
    .footer-contact {
        text-align: left;
    }
    .footer-contact-title {
        text-align: left;
    }
    .footer-contact-title::after {
        left: 0;
        transform: none;
    }
    .footer-contact-list li {
        justify-content: flex-start;
    }
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .footer-hr {
        margin: 25px 0 20px;
    }
    .copyright {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 35px 0 20px;
    }
    .footer .container {
        padding: 0 14px;
    }
    .footer-logo img {
        height: 32px;
    }
    .footer-description {
        font-size: 12px;
    }
    .footer-title {
        font-size: 15px;
        margin-bottom: 16px;
    }
    .footer-links a {
        font-size: 12px;
    }
    .footer-contact-list li {
        font-size: 11px;
        gap: 8px;
    }
    .footer-contact-list i {
        width: 18px;
        font-size: 12px;
    }
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.suggestion-item:hover {
    background: rgba(45, 52, 186, 0.05);
}

.suggestion-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
}

.suggestion-model {
    font-size: 12px;
    color: var(--gray);
}

.suggestion-category {
    font-size: 11px;
    color: var(--primary);
}

.search-loading, .search-empty {
    padding: 20px;
    text-align: center;
    color: var(--gray);
}

.form-control, .form-select {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(45, 52, 186, 0.1) !important;
}

textarea.form-control {
    min-height: 80px !important;
}

.form-check-input {
    width: 1.1rem !important;
    height: 1.1rem !important;
    margin-right: 0.5rem !important;
}

.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.image-preview img {
    max-width: 80px;
    border-radius: 8px;
    margin-top: 8px;
}

.row.g-3 {
    --bs-gutter-y: 0.75rem;
    --bs-gutter-x: 0.75rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(45, 52, 186, 0.2), rgba(45, 52, 186, 0.05));
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 52, 186, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(45, 52, 186, 0.3); }
    50% { box-shadow: 0 0 20px rgba(45, 52, 186, 0.6); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

	.btn-premium-3d {
	    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	    border: none;
	    color: white;
	    padding: 12px 32px;
	    border-radius: 50px;
	    font-weight: 600;
	    transition: all 0.3s ease;
	    box-shadow: 0 5px 15px rgba(45, 52, 186, 0.3);
	    display: inline-block;
	    text-decoration: none;
	}

	.btn-premium-3d:hover {
	    transform: translateY(-2px);
	    box-shadow: 0 10px 25px rgba(45, 52, 186, 0.4);
	    color: white;
	}

	.btn-outline-premium-3d {
	    background: transparent;
	    border: 2px solid var(--primary);
	    color: var(--primary);
	    padding: 10px 28px;
	    border-radius: 50px;
	    font-weight: 600;
	    transition: all 0.3s ease;
	    display: inline-block;
	    text-decoration: none;
	}

	.btn-outline-premium-3d:hover {
	    background: var(--primary);
	    color: white;
	    transform: translateY(-2px);
	}


.category-card-3d {
    background: white;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.category-card-3d::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card-3d:hover::after {
    transform: scaleX(1);
}

.category-card-3d:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.category-icon-3d {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(45, 52, 186, 0.1), rgba(45, 52, 186, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.product-image-modern {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafcff 0%, #f5f7fb 100%);
    padding: 16px;
}

.product-image-modern img {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
}

.badge-modern {
    position: absolute;
    top: 10px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
}

.badge-new {
    left: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.badge-popular {
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.product-info-modern {
    padding: 14px;
}

.product-title-modern {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
}

.product-title-modern a {
    color: var(--secondary);
    text-decoration: none;
}

.product-title-modern a:hover {
    color: var(--primary);
}

.product-model-modern {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-detail-modern {
    display: block;
    text-align: center;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-detail-modern:hover {
    background: var(--primary);
    color: white;
}

.page-link-modern {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border);
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link-modern:hover {
    background: rgba(45, 52, 186, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

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

.marquee {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =====================================================================
   2026-10-16: qo'shimchalar (til, katalog, kartochka, mobil moslashuv)
   ===================================================================== */

/* AOS yuklanmasa ham kontent yashirin qolmasin */
html:not(.aos-ready) [data-aos] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

img { max-width: 100%; }
main { display: block; min-height: 50vh; }
.site-alert { border-radius: 14px; border-left: 4px solid var(--primary); }

/* Til tanlash */
.flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex-shrink: 0; }
.language-btn { border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-code { font-size: 13px; font-weight: 600; }
.language-item { display: flex; align-items: center; gap: 8px; }
.mobile-langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 0 4px; }
.mobile-lang { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--border); border-radius: 12px; color: var(--dark); text-decoration: none; font-size: 13px; font-weight: 600; }
.mobile-lang.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.mobile-nav-header { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
.mobile-search input { width: 100%; }
.dropdown-count { margin-left: auto; font-size: 11px; color: var(--gray); }
.search-suggestions a.suggestion-item { text-decoration: none; color: inherit; }
.search-box input[type=search]::-webkit-search-cancel-button { display: none; }

/* Footer: kontent bilan bir xil kenglik, mobilda ixcham */
.footer h2.footer-title, .footer h2.footer-contact-title { font-size: 16px; }
.footer-contact-list a { color: inherit; text-decoration: none; }
.footer-contact-list a:hover { color: var(--primary); }

/* Aloqa formasi xabarlari */
.form-notice { border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.form-notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-notice--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Mobil footer: havolalar ikki ustunda, ixchamroq */
@media (max-width: 767.98px) {
    .footer { padding: 36px 0 24px; margin-top: 40px; }
    .footer-links-wrapper { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-links-col { margin: 0 !important; }
    .footer-links li { margin-bottom: 8px; }
}

/* Animatsiya paytida (masalan, o'ngdan kirib keluvchi bloklar) mobilda gorizontal aylantirish paydo bo'lmasin.
   overflow-x: clip - sticky yon panelni buzmaydi (hidden'dan farqli) */
html, body { overflow-x: clip; }

/* Noutbuk (993-1399px): header bitta qatorga sig'ishi uchun ixchamroq */
.navbar-main .container { flex-wrap: nowrap; }
@media (min-width: 993px) and (max-width: 1399.98px) {
    .navbar-main .container { gap: 14px; }
    .search-container { max-width: 320px; }
    .nav-link { padding: 8px 11px; }
    .search-box button span { display: none; }
    .search-box button { padding: 10px 16px; }
}
@media (max-width: 992px) {
    .navbar-main .container { flex-wrap: wrap; }
}

/* =====================================================================
   KATALOG VA MAHSULOT KARTOCHKALARI (2026-10-16, v2 dizayn)
   Mahsulotlar, kategoriya, bosh sahifa va "O'xshash mahsulotlar" uchun umumiy.
   ===================================================================== */
:root {
    --navy: #14206b;
    --navy-2: #1f2f9c;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e8edf5;
    --soft: #eef3ff;
}

/* Katta ekranlar: kengroq konteyner */
@media (min-width: 1600px) { .container { max-width: 1520px; } }

.catalog { padding-top: 22px; padding-bottom: 56px; }

/* ---- Yuqori banner ---- */
.cat-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 30px; margin-bottom: 26px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #3346d6 0%, rgba(51,70,214,0) 55%), linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
    box-shadow: 0 18px 40px -18px rgba(20,32,107,.55); }
.cat-hero::after { content: ''; position: absolute; inset: 0; background: url("/static/img/bg.webp") center / 640px auto; opacity: .07; pointer-events: none; }
.cat-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }
.cat-hero h1 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.cat-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; max-width: 460px; }
.cat-hero-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-hero-badge { display: flex; gap: 12px; align-items: flex-start; }
.cat-hero-badge i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.cat-hero-badge strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.cat-hero-badge span { display: block; font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.4; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs i { font-size: 10px; opacity: .6; }
.crumbs span { color: var(--ink); font-weight: 500; }

/* ---- Yon panel (kategoriyalar) ---- */
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.cat-side { position: sticky; top: 92px; max-height: calc(100vh - 108px); display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px; box-shadow: 0 6px 24px -14px rgba(15,23,42,.18); }
.cat-side-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); padding: 4px 8px 12px; flex-shrink: 0; }
.cat-side-head i { color: var(--navy-2); font-size: 18px; }
.cat-list { list-style: none; margin: 0 -4px 0 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 3px;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.cat-link { display: flex; align-items: center; gap: 11px; padding: 7px 10px 7px 7px; border-radius: 12px; color: var(--ink);
    text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.3; transition: background .2s, color .2s; }
.cat-link:hover { background: var(--soft); color: var(--navy-2); }
.cat-link.is-active { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; box-shadow: 0 8px 18px -8px rgba(31,47,156,.6); }
.cat-ico { width: 36px; height: 36px; border-radius: 10px; background: #f4f6fb; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; color: var(--navy-2); }
.cat-ico img { width: 30px; height: 30px; object-fit: contain; }
.cat-link.is-active .cat-ico { background: rgba(255,255,255,.95); }
.cat-name { flex: 1; }

/* ---- Asosiy qism sarlavhasi ---- */
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-head-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.catalog-head-icon { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); color: var(--navy-2); font-size: 22px; overflow: hidden; }
.catalog-head-icon img { width: 40px; height: 40px; object-fit: contain; }
.catalog-head h1, .catalog-head h2 { font-size: clamp(21px, 2vw, 28px); font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.catalog-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.catalog-total { font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 30px; white-space: nowrap; }
.search-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--soft); border-left: 3px solid var(--navy-2);
    border-radius: 12px; padding: 10px 16px; margin-bottom: 18px; font-size: 13px; }
.search-note a { color: var(--navy-2); }

/* ---- Kartochkalar ---- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 4px 18px -12px rgba(15,23,42,.18); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); border-color: #d5def0; box-shadow: 0 20px 36px -18px rgba(20,32,107,.35); }
.pcard-media { position: relative; display: flex; align-items: center; justify-content: center; height: 210px; padding: 18px 16px 10px; background: #fff; overflow: hidden; }
.pcard-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s ease; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.pcard-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; line-height: 1; color: #fff; }
.pcard-badge--new { background: #16a34a; }
.pcard-badge--hot { background: var(--navy-2); }
.pcard-badge--sale { background: #dc2626; }
.pcard-body { padding: 4px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.pcard-title { font-size: 15.5px; font-weight: 800; line-height: 1.35; margin: 0 0 8px; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 2); }
.pcard-title a { color: inherit; text-decoration: none; }
.pcard-title a:hover { color: var(--navy-2); }
.pcard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* butun kartochka bosiladi */
.pcard-model { align-self: flex-start; max-width: 100%; font-size: 11.5px; font-weight: 700; color: var(--navy-2); background: var(--soft);
    padding: 4px 10px; border-radius: 8px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; color: #334155; }
.pcard-specs li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pcard-specs i { color: var(--navy-2); font-size: 14px; }
.pcard-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pcard-price-now { font-size: 17px; font-weight: 800; color: var(--navy-2); }
.pcard-price-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.pcard-btn { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 11px 16px; border-radius: 12px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
    font-size: 13.5px; font-weight: 700; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.pcard-btn .bi-chevron-right { position: absolute; right: 14px; top: 50%; margin-top: -6px; font-size: 12px; line-height: 1; transition: transform .2s; }
.pcard-btn:hover { color: #fff; box-shadow: 0 10px 22px -10px rgba(31,47,156,.8); }
.pcard-btn:hover .bi-chevron-right { transform: translateX(3px); }
.pcard-btn--inline { display: inline-flex; width: auto; padding: 11px 24px; }

.empty-box { text-align: center; background: #fff; border-radius: 20px; padding: 56px 20px; border: 1px solid var(--line); }
.empty-box i { font-size: 48px; color: #cbd5e1; }
.empty-box h2 { font-size: 20px; margin: 12px 0 6px; }
.empty-box p { color: var(--muted); margin-bottom: 18px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager-link { min-width: 40px; height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.pager-link:hover { border-color: var(--navy-2); color: var(--navy-2); }
.pager-link.is-active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* "O'xshash mahsulotlar" va bosh sahifa (yon panelsiz) */
.pgrid--related .pcard { box-shadow: none; }
.pgrid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Moslashuv ---- */
@media (min-width: 1600px) {
    .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pgrid--related { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pgrid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } /* bosh sahifa: 8 ta mahsulot = 2 to'liq qator */
    .catalog-layout { grid-template-columns: 270px minmax(0, 1fr); }
}
@media (max-width: 1399.98px) {
    .cat-hero-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 1199.98px) {
    .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
    .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pgrid--related, .pgrid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pcard-media { height: 190px; }
}
@media (max-width: 991.98px) {
    .catalog { padding-top: 14px; }
    .cat-hero { padding: 20px; border-radius: 18px; }
    .cat-hero-badges { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .cat-hero-badge { flex-direction: column; gap: 8px; }
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .cat-side { position: static; max-height: none; padding: 0; background: none; border: 0; box-shadow: none; }
    .cat-side-head { display: none; }
    .cat-list { flex-direction: row; gap: 8px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; }
    .cat-list::-webkit-scrollbar { display: none; }
    .cat-list li { flex-shrink: 0; scroll-snap-align: start; }
    .cat-link { background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 5px 14px 5px 5px; font-size: 13px; white-space: nowrap; }
    .cat-ico { width: 28px; height: 28px; border-radius: 50%; }
    .cat-ico img { width: 24px; height: 24px; }
}
@media (max-width: 767.98px) {
    .cat-hero-badges { display: none; }
    .catalog-head-icon { width: 42px; height: 42px; font-size: 18px; }
    .catalog-head p { display: none; }
    .pgrid, .pgrid--related, .pgrid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard { border-radius: 14px; }
    .pcard-media { height: 150px; padding: 12px 10px 6px; }
    .pcard-body { padding: 2px 10px 10px; }
    .pcard-title { font-size: 13px; }
    .pcard-model { font-size: 10.5px; padding: 3px 7px; margin-bottom: 8px; }
    .pcard-specs { font-size: 11px; gap: 4px 10px; }
    .pcard-desc { display: none; }
    .pcard-btn { padding: 9px 10px; font-size: 12px; border-radius: 10px; }
    .pcard-badge { font-size: 10px; padding: 3px 7px; }
}
@media (max-width: 767.98px) {
    .catalog-head { flex-wrap: nowrap; gap: 10px; }
    .catalog-head-title { gap: 10px; }
    .catalog-total { font-size: 12px; padding: 5px 10px; }
}

/* ---- Ko'rinish almashtirgich (setka / ro'yxat) ---- */
.catalog-tools { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.view-btn { width: 38px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--navy-2); font-size: 17px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.view-btn:hover { background: var(--soft); }
.view-btn.is-active { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }

/* Ro'yxat ko'rinishi: rasm chapda, ma'lumot o'ngda */
.pgrid.is-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pgrid.is-list .pcard { flex-direction: row; align-items: stretch; }
.pgrid.is-list .pcard:hover { transform: translateY(-2px); }
.pgrid.is-list .pcard-media { width: 220px; flex-shrink: 0; height: 200px; align-self: center; border-right: 1px solid var(--line); padding: 16px; }
.pgrid.is-list .pcard-model { justify-self: start; }
.pgrid.is-list .pcard-body { padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-rows: auto auto auto 1fr;
    column-gap: 24px; align-items: start; }
.pgrid.is-list .pcard-body > * { grid-column: 1; }
.pgrid.is-list .pcard-title { font-size: 18px; min-height: 0; -webkit-line-clamp: 1; margin-bottom: 8px; }
.pgrid.is-list .pcard-desc { -webkit-line-clamp: 3; margin-bottom: 0; }
.pgrid.is-list .pcard-specs { font-size: 13.5px; gap: 8px 18px; }
.pgrid.is-list .pcard-price { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.pgrid.is-list .pcard-btn { grid-column: 2; grid-row: 3 / span 2; align-self: end; margin-top: 0; }
@media (max-width: 991.98px) {
    .pgrid.is-list .pcard-body { grid-template-columns: minmax(0, 1fr); }
    .pgrid.is-list .pcard-price, .pgrid.is-list .pcard-btn { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }
}
@media (max-width: 767.98px) {
    .view-toggle { display: none; }  /* telefonda doim setka (2 ustun) */
    .pgrid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pgrid.is-list .pcard { flex-direction: column; }
    .pgrid.is-list .pcard-media { width: auto; min-height: 0; height: 150px; border-right: 0; }
    .pgrid.is-list .pcard-body { display: flex; padding: 2px 10px 10px; }
    .pgrid.is-list .pcard-title { font-size: 13px; -webkit-line-clamp: 2; min-height: calc(1.35em * 2); }
    .pgrid.is-list .pcard-desc { display: none; }
}

/* ---- Sahifa banneri: barcha sahifalarda bir xil (2026-10-16) ---- */
.page-hero-wrap { padding-top: 22px; }
.page-hero-wrap + .catalog, .page-hero-wrap + section, .page-hero-wrap + .container { padding-top: 0; }
.page-hero-wrap .cat-hero { margin-bottom: 26px; }
.cat-hero-text { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cat-hero-icon { flex-shrink: 0; width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.cat-hero-meta { margin-top: 6px !important; font-size: 13px !important; color: rgba(255,255,255,.7) !important; }
a.cat-hero-badge { color: #fff; text-decoration: none; }
a.cat-hero-badge:hover strong { text-decoration: underline; }
.cat-hero-badge strong { word-break: break-word; }
@media (max-width: 767.98px) {
    .page-hero-wrap { padding-top: 14px; }
    .cat-hero-icon { width: 46px; height: 46px; font-size: 21px; border-radius: 13px; }
    .cat-hero-text { gap: 12px; }
}

/* Sahifa ichidagi yo'l ko'rsatkich (breadcrumb): › belgisi bilan */
.crumbs--page { font-size: 14px; margin: 6px 0 18px; padding: 10px 16px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; display: inline-flex; max-width: 100%; }
.crumbs--page a { display: inline-flex; align-items: center; gap: 6px; }
.crumbs--page span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
@media (max-width: 575.98px) { .crumbs--page { font-size: 13px; padding: 8px 12px; } .crumbs--page span { max-width: 22ch; } }

/* Kartochka: setkada 3 ta asosiy xususiyat, ro'yxatda 6 tagacha */
.pgrid:not(.is-list) .pcard-specs li:nth-child(n+4) { display: none; }
.pgrid.is-list .pcard-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; max-width: 720px; margin-bottom: 12px; }
.pgrid.is-list .pcard-specs li { white-space: normal; align-items: flex-start; }
@media (max-width: 1199.98px) { .pgrid.is-list .pcard-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pgrid.is-list .pcard-specs { display: flex; } .pgrid.is-list .pcard-specs li:nth-child(n+4) { display: none; } }

/* =====================================================================
   "Qayerdan xarid qilish mumkin" - buyurtma sahifasi
   ===================================================================== */
.order-page { padding-top: 22px; padding-bottom: 56px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: 0 8px 30px -18px rgba(15,23,42,.25); }
.order-card-head { display: flex; gap: 16px; align-items: center; margin: -26px -28px 22px; padding: 22px 28px; color: #fff; border-radius: 22px 22px 0 0;
    background: radial-gradient(120% 140% at 100% 0%, #3346d6 0%, rgba(51,70,214,0) 55%), linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.order-card-head h1 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; margin: 0 0 4px; }
.order-card-head p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.8); }
.order-card-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.order-step { padding: 4px 0 20px; border-bottom: 1px dashed var(--line); margin-bottom: 20px; }
.order-step:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.order-step-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.order-step-title span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--soft); color: var(--navy-2); font-size: 13px; }
.ofield-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.ofield { border-radius: 12px; border: 1px solid #dfe5ef; padding: 11px 14px; font-size: 14.5px; background-color: #fbfcfe; }
.ofield:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(31,47,156,.12); background-color: #fff; }
.ofield.is-invalid { border-color: #dc2626; }
.field-error { font-size: 12.5px; color: #dc2626; margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.store-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.store-hint { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 12px; background: #f6f8fc; color: var(--muted); font-size: 13.5px; }
.store-option { position: relative; display: flex; gap: 12px; padding: 14px 14px 14px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
    background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.store-option:hover { border-color: #c9d4f2; }
.store-option input { margin-top: 3px; accent-color: var(--navy-2); width: 17px; height: 17px; flex-shrink: 0; }
.store-option:has(input:checked) { border-color: var(--navy-2); background: #f5f7ff; box-shadow: 0 6px 18px -10px rgba(31,47,156,.5); }
.store-option-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.store-option-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-option-top strong { font-size: 14.5px; color: var(--ink); }
.store-option-meta { font-size: 12.5px; color: var(--muted); }
.store-option-meta i { color: var(--navy-2); }
.store-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.store-badge.is-in { background: #dcfce7; color: #166534; }
.store-badge.is-order { background: #fef3c7; color: #92400e; }

.qty-box { display: flex; align-items: stretch; }
.qty-box .ofield { text-align: center; border-radius: 0; -moz-appearance: textfield; }
.qty-box .ofield::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn { width: 44px; border: 1px solid #dfe5ef; background: #f4f6fb; color: var(--navy-2); font-size: 18px; }
.qty-btn:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.qty-btn:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.order-submit { padding: 14px 18px; font-size: 15px; border-radius: 14px; border: 0; cursor: pointer; }

.order-summary { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 8px 30px -18px rgba(15,23,42,.25); }
.order-product { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.order-product-img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 14px; background: #f6f8fc; display: flex; align-items: center; justify-content: center; padding: 8px; }
.order-product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.order-product h2 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.order-product p { margin: 0; font-size: 13px; color: var(--muted); }
.order-specs { margin-bottom: 14px; }
.order-chosen { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--soft); margin-bottom: 14px; font-size: 13px; color: #334155; }
.order-chosen-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-2); }
.order-chosen strong { font-size: 14.5px; color: var(--ink); }
.order-chosen a { color: var(--navy-2); font-weight: 600; text-decoration: none; }
.order-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: #334155; }
.order-perks i { color: var(--navy-2); margin-right: 6px; }
@media (max-width: 991.98px) {
    .order-layout { grid-template-columns: minmax(0, 1fr); }
    .order-summary { position: static; order: -1; }
    .order-summary .order-perks, .order-summary .order-specs { display: none; }
}
@media (max-width: 575.98px) {
    .order-card { padding: 20px 16px; border-radius: 18px; }
    .order-card-head { margin: -20px -16px 18px; padding: 18px 16px; border-radius: 18px 18px 0 0; }
    .store-list { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Sahifa banneri va katalog sarlavhasi: ixcham standart o'lcham (2026-10-17) ===== */
.cat-hero { padding: 18px 26px; border-radius: 18px; }
.page-hero-wrap .cat-hero { margin-bottom: 22px; }
.cat-hero h1 { font-size: clamp(19px, 1.6vw, 23px); margin: 0 0 4px; }
.cat-hero p { font-size: 13.5px; line-height: 1.5; }
.cat-hero-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 13px; }
.cat-hero-text { gap: 14px; }
.cat-hero-badge i { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.cat-hero-badges--single { display: flex; justify-content: flex-end; }
.catalog-head { margin-bottom: 16px; }
.catalog-head h1, .catalog-head h2 { font-size: clamp(18px, 1.4vw, 21px); }
.catalog-head p { font-size: 13px; }
.catalog-head-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.catalog-head-icon img { width: 32px; height: 32px; }
@media (max-width: 768px) {
    .cat-hero { padding: 16px 18px; border-radius: 16px; }
    .cat-hero h1 { font-size: 19px; }
    .cat-hero-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
    .catalog-head-icon { width: 38px; height: 38px; font-size: 16px; }
}
/* Banner ostidagi birinchi blok - barcha sahifalarda bir xil masofa */
.page-hero-wrap + .py-5, .page-hero-wrap + section.py-5 { padding-top: 0 !important; }
@media (max-width: 768px) { .cat-hero-badges--single { display: none; } }

/* ===== Mahsulotlar mega-menyusi (2026-10-17) ===== */
.navbar-main .container { position: relative; }
.nav-item.has-mega { position: static; }
.nav-caret { font-size: 10px; margin-left: 3px; display: inline-block; transition: transform .25s ease; vertical-align: 1px; }
.nav-item.has-mega:hover .nav-caret, .nav-item.has-mega:focus-within .nav-caret { transform: rotate(180deg); }
.mega-menu { position: absolute; top: 100%; left: 50%; width: min(1040px, calc(100% - 24px)); padding-top: 12px; z-index: 120;
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; pointer-events: none; }
.nav-item.has-mega:hover .mega-menu, .nav-item.has-mega:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; background: #fff; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .06); box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .28), 0 8px 20px -12px rgba(45, 52, 186, .18); }
.mega-main { padding: 22px 24px 24px; }
.mega-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border, #eef1f6); }
.mega-head span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary, #2d34ba); display: inline-flex; align-items: center; gap: 8px; }
.mega-head a { font-size: 13px; font-weight: 600; color: var(--primary, #2d34ba); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mega-head a i { transition: transform .2s; }
.mega-head a:hover i { transform: translateX(3px); }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mega-cat { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: #1e293b;
    border: 1px solid transparent; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.mega-cat:hover { background: #f5f7ff; border-color: #e0e7ff; transform: translateY(-1px); box-shadow: 0 8px 18px -14px rgba(45, 52, 186, .6); color: var(--primary, #2d34ba); }
.mega-cat-img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: #f4f6fb; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; transition: background .18s; }
.mega-cat-img img { width: 40px; height: 40px; object-fit: contain; transition: transform .25s ease; }
.mega-cat-img i { font-size: 20px; color: var(--primary, #2d34ba); }
.mega-cat:hover .mega-cat-img { background: #fff; }
.mega-cat:hover .mega-cat-img img { transform: scale(1.1); }
.mega-cat-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mega-cat-arrow { font-size: 12px; color: #94a3b8; opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.mega-cat:hover .mega-cat-arrow { opacity: 1; transform: none; color: var(--primary, #2d34ba); }
.mega-side { position: relative; overflow: hidden; padding: 26px 24px; color: #fff; display: flex; flex-direction: column; gap: 10px;
    background: linear-gradient(160deg, #1e1b4b 0%, #2d34ba 60%, #4f46e5 100%); }
.mega-side::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.mega-side-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.mega-side h4 { margin: 4px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mega-side p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.78); }
.mega-side-btn { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
    background: #fff; color: var(--primary, #2d34ba); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: transform .18s, box-shadow .18s; position: relative; z-index: 1; }
.mega-side-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); color: var(--primary, #2d34ba); }
.mega-side-badge { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); position: relative; z-index: 1; }
.mega-side-badge i { font-size: 20px; }
.mega-side-badge strong { display: block; font-size: 13px; }
.mega-side-badge span { display: block; font-size: 11.5px; color: rgba(255,255,255,.72); }
.mega-side-link { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.mega-side-link:hover { color: #fff; }
@media (max-width: 1199.98px) { .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mega-inner { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (prefers-reduced-motion: reduce) { .mega-menu, .mega-cat, .mega-cat-img img { transition: none; } }
.mega-side { justify-content: center; gap: 12px; }
.mega-side h4 { margin: 0; font-size: 20px; }

/* ===== Slayderlar (bosh sahifa banneri, Biz haqimizda) ===== */
.ez-slider { position: relative; overflow: hidden; }
.ez-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.ez-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.ez-slide img { display: block; }
.ez-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.ez-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.ez-dots button.on { width: 24px; background: #fff; }
/* Bosh sahifa: o'ng tomondagi maydonga sig'adi, rasm cho'zilmaydi */
.hero-slider { min-height: clamp(260px, 30vw, 440px); display: flex; align-items: center; justify-content: center; }
.hero-slider .ez-slide { display: flex; align-items: center; justify-content: center; height: 100%; }
.hero-slider .ez-slide.is-active { width: 100%; }
.hero-slider .ez-slide img { max-width: 100%; max-height: clamp(260px, 30vw, 440px); width: auto; height: auto; object-fit: contain; }
.hero-slider .ez-dots { bottom: -6px; }
/* Biz haqimizda: rasm kartochka ichida to'liq qoplaydi */
.about-slider { border-radius: inherit; }
.about-slider .ez-slide img { width: 100%; height: clamp(320px, 34vw, 480px); object-fit: cover; }
.about-slider .ez-dots { bottom: 16px; }

/* ===== Bo'lim sarlavhalari: butun saytda bir xil standart o'lcham ===== */
main .display-5, main .display-6, main .section-title { font-size: clamp(22px, 1.9vw, 28px) !important; letter-spacing: -.01em; line-height: 1.25; }
main .display-5 + p, main .display-6 + p { font-size: 14px; }

/* ===== Mahsulot kartochkasidagi rang nuqtalari (U) ===== */
/* Model va ranglar bir qatorda */
.pcard-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.pcard-meta .pcard-model { margin-bottom: 0; min-width: 0; flex: 0 1 auto; }
.pcard-colors { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.pcard-colors span { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .22); }
.pcard-colors small { font-size: 11px; color: #6b7280; margin-left: 2px; }

/* Header: menyu bandlari hech qachon ikki qatorga bo'linmasin ("Servis markazlar" qo'shilganda ham) */
.nav-link, .search-box button { white-space: nowrap; }
.search-container { min-width: 170px; }
.search-box input { min-width: 0; width: 100%; }
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .nav-links--wide .nav-link { padding: 8px 13px; }
}
@media (min-width: 993px) and (max-width: 1399.98px) {
    .nav-links--wide { gap: 2px; }
    .nav-links--wide .nav-link { padding: 8px 9px; font-size: 13.5px; }
}
@media (min-width: 993px) and (max-width: 1199.98px) {
    .nav-links--wide .nav-link { padding: 7px 7px; font-size: 13px; }
}

@media (max-width: 575.98px) {
    .pcard-meta { gap: 6px; margin-bottom: 8px; }
    .pcard-colors { gap: 3px; }
    .pcard-colors span { width: 11px; height: 11px; }
}

/* Ranglar: setkada kartochkaning o'ng chetiga tekislanadi (ko'paysa chapga qarab o'sadi),
   ro'yxat ko'rinishida xususiyatlarning 2-ustuni boshidan boshlanadi */
.pcard-meta .pcard-colors { margin-left: auto; }
.pgrid.is-list .pcard-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; max-width: 720px; }
.pgrid.is-list .pcard-meta .pcard-model { justify-self: start; max-width: 100%; }
.pgrid.is-list .pcard-meta .pcard-colors { grid-column: 2; margin-left: 0; }
@media (max-width: 1199.98px) { .pgrid.is-list .pcard-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .pgrid.is-list .pcard-meta { display: flex; }
    .pgrid.is-list .pcard-meta .pcard-colors { margin-left: auto; }
}
.pgrid:not(.is-list) .pcard-meta .pcard-colors { margin-right: 8px; }
@media (max-width: 575.98px) { .pgrid:not(.is-list) .pcard-meta .pcard-colors { margin-right: 4px; } }
/* Ko'p rangda ham model nomi qisqarmaydi; joy yetmasa ranglar keyingi qatorga o'tadi */
.pcard-meta { flex-wrap: wrap; row-gap: 6px; }
.pcard-meta .pcard-model { flex-shrink: 0; }
.pcard-colors small { font-weight: 600; white-space: nowrap; }
/* Ixcham "ustma-ust" nuqtalar - 4 ta rang + son bir qatorga sig'adi */
.pcard-colors { gap: 0; }
.pcard-colors span { box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1px rgba(15, 23, 42, .22); }
.pcard-colors span + span { margin-left: -3px; }
.pcard-colors small { margin-left: 5px; }
@media (max-width: 575.98px) {
    .pcard-colors span + span { margin-left: -3px; }
    .pcard-colors small { margin-left: 4px; font-size: 10.5px; }
}
@media (min-width: 576px) and (max-width: 1399.98px) {
    .pcard-meta { gap: 6px; }
    .pgrid:not(.is-list) .pcard-meta .pcard-colors { margin-right: 2px; }
}


/* ===== Yangiliklarga obuna bloki (bosh sahifa va Aloqa) ===== */
/* Newsletter Section */
.newsletter-modern {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    background: #2d34ba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.newsletter-icon i {
    font-size: 32px;
    color: white;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1c23;
}

.newsletter-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.newsletter-input:focus {
    border-color: #2d34ba;
    box-shadow: 0 0 0 3px rgba(45,52,186,0.1);
}

.newsletter-btn {
    background: #2d34ba;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { min-height: 22px; margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.nl-msg.ok { color: #15803d; }
.nl-msg.err { color: #dc2626; }
.newsletter-input.is-invalid { border-color: #dc2626; }
.newsletter-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.newsletter-btn:hover {
    transform: translateY(-2px);
    background: #22289a;
}
@media (max-width: 768px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-btn { width: 100%; }
}

/* Aloqa kartochkalari: telefon va email havolalari chiziqsiz */
.contact-card a { color: inherit; text-decoration: none; transition: color .2s; }
.contact-card a:hover { color: var(--primary, #2d34ba); }
