/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #C40000;
    --color-primary-dark: #a00000;
    --color-primary-light: #ff1a1a;
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-text-muted: #999;
    --color-bg: #ffffff;
    --color-bg-gray: #f5f5f5;
    --color-bg-light: #fafafa;
    --color-border: #e0e0e0;
    --color-footer: #1a1a1a;
    --color-success: #28a745;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.header-search button:hover {
    background: var(--color-primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--color-bg-gray);
    padding: 4px;
    border-radius: var(--radius-md);
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.lang-btn.active {
    color: var(--color-primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    font-size: 22px;
    color: var(--color-text);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.mobile-menu-btn:hover {
    background: var(--color-bg-gray);
}

/* Main Navigation */
.main-nav {
    background: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
    margin-top: 70px;
}

.nav-inner {
    display: flex;
    gap: 32px;
    height: 50px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-inner a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-inner a:hover {
    color: var(--color-primary);
}

.nav-inner a::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-inner a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
}

.mobile-search button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav a {
    font-size: 18px;
    text-decoration: none;
    color: var(--color-text);
    padding: 15px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: var(--color-bg-gray);
    color: var(--color-primary);
}

.mobile-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.cart-count-mobile {
    margin-left: auto;
    background: white;
    color: var(--color-primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-gray) 100%);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.hero p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-red {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-red:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(196, 0, 0, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-gray {
    background: var(--color-bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--color-text);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Asosiy rasm konteyneri - 4:3 nisbat */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* ✅ Zamonaviy nisbat */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rasm uslubi - yuqori va past qism to'liq ko'rinsin, chap/o'ng esa bo'sh qolishi mumkin */
.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effekti */
.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Placeholder/yo'qolgan rasm uchun */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(196, 0, 0, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(196, 0, 0, 0.03) 50%, transparent 52%);
    background-size: 20px 20px;
    pointer-events: none;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--color-text);
    line-height: 1.4;
}

.product-name-secondary {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.product-prices {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    color: var(--color-text-light);
}

.price-value {
    font-weight: 700;
    color: var(--color-text);
}

.price-value.wholesale {
    color: var(--color-primary);
}

.min-qty-info {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.min-qty-info i {
    color: var(--color-primary);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--color-border);
}

/* Sourcing Section */
.sourcing-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.sourcing-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.sourcing-content p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.sourcing-form {
    margin-top: 32px;
    text-align: left;
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 12px 6px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 15px;
    transition: var(--transition);
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.form-group textarea ~ label {
    top: 20px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
    text-align: center;
}

.about-content p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-content > p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.contact-info {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--color-bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-footer);
    color: white;
    padding: 50px 0 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: white;
}

.footer-brand p {
    color: #999;
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--color-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--color-border);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--color-bg-gray);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.cart-item-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    background: var(--color-bg-gray);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.quantity-control button:hover {
    background: var(--color-border);
}

.quantity-control span {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--color-primary);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 16px;
}

.cart-total strong {
    color: var(--color-primary);
    font-size: 20px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-content.modal-small {
    max-width: 400px;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
}

.modal-body {
    padding: 32px;
}

/* Product Modal Layout */
.product-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-modal-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-gray);
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
}

.modal-product-name {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-product-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-size: 16px;
}

.modal-product-description {
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-prices {
    background: var(--color-bg-gray);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.modal-price-row:last-child {
    border-bottom: none;
}

.modal-price-row strong {
    font-size: 18px;
}

.quantity-selector {
    margin-bottom: 24px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 150px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-input-group button {
    width: 40px;
    height: 44px;
    background: var(--color-bg-gray);
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.quantity-input-group button:hover {
    background: var(--color-border);
}

.quantity-input-group input {
    width: 70px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-success);
    font-size: 14px;
    margin-top: 16px;
}

/* Order Summary */
.order-summary {
    background: var(--color-bg-gray);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.order-summary h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
}

.order-total strong {
    color: var(--color-primary);
    font-size: 18px;
}

/* Success Modal */
.success-icon {
    font-size: 64px;
    color: var(--color-success);
    margin-bottom: 20px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification i {
    color: var(--color-success);
}

/* User Type Selection */
.user-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.user-type-card {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.user-type-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-type-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--color-primary);
}

.user-type-icon.legal {
    background: #e3f2fd;
    color: #1976d2;
}

.user-type-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.user-type-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.user-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-gray);
    border-radius: 12px;
    font-size: 12px;
    color: var(--color-text-light);
}

.user-type-badge.legal {
    background: #e3f2fd;
    color: #1976d2;
}

/* Checkout Header */
.checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

.checkout-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--color-primary);
}

.checkout-icon.legal {
    background: #e3f2fd;
    color: #1976d2;
}

.payment-method {
    color: var(--color-text-light);
    font-size: 14px;
    margin-top: 8px;
}

/* Form Sections */
.form-sections {
    display: grid;
    gap: 24px;
}

.form-section {
    background: var(--color-bg-gray);
    padding: 20px;
    border-radius: var(--radius-md);
}

.form-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--color-text);
}

/* Contract Info */
.contract-info {
    background: #e3f2fd;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contract-info i {
    color: #1976d2;
    font-size: 20px;
    margin-top: 2px;
}

.contract-info strong {
    display: block;
    margin-bottom: 4px;
    color: #1565c0;
}

.contract-info p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

/* Payment Info */
.payment-info {
    background: #e8f5e9;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.payment-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #2e7d32;
}

.payment-link {
    text-align: center;
}

.btn-click {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.btn-click:hover {
    background: #1565c0;
    border-color: #1565c0;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-modal-layout {
        grid-template-columns: 1fr;
    }

    .product-modal-image img {
        min-height: 250px;
    }

    .user-type-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .lang-switcher {
        display: flex;  /* TO'G'RI - endi ko'rinadi */
        order: -1;      /* Logodan keyin, lekin boshqa elementlardan oldin */
    }
    
    /* Mobil til tugmalarini kichikroq qilish */
    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .section-header h2,
    .sourcing-content h2,
    .about-content h2,
    .contact-content h2 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .modal-body {
        padding: 24px;
    }

    .user-type-options {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .sourcing-form {
        padding: 24px;
    }

    .contact-info {
        padding: 24px;
    }

    .filters {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .container {
        padding: 0 16px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;
    }

    .product-modal-image img {
        min-height: 200px;
    }

    .modal-product-name {
        font-size: 20px;
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .header, .main-nav, .mobile-menu-btn, .cart-icon, .footer {
        display: none !important;
    }

    .hero, .section {
        padding: 20px 0 !important;
    }
}

/* Payment status badges */
.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending_payment {
    background: #fff3e0;
    color: #f57c00;
}

/* Payment processing animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.payment-processing {
    animation: pulse 1.5s infinite;
}

/* ============================================
   MOBILE: 2 ta mahsulot bir qatorda
   ============================================ */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ta ustun */
        gap: 12px; /* kichikroq bo'shliq */
    }
    
    .product-card {
        /* Kichikroq padding */
    }
    
    .product-image {
        aspect-ratio: 1 / 1; /* Kvadrat shakl */
        height: 140px; /* Aniq balandlik */
    }
    
    .product-info {
        padding: 12px; /* Kichikroq padding */
    }
    
    .product-card h3 {
        font-size: 13px; /* Kichikroq sarlavha */
        line-height: 1.3;
        margin-bottom: 4px;
        /* 2 qatordan oshmasin */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-name-secondary {
        font-size: 11px; /* Kichikroq */
        margin-bottom: 8px;
    }
    
    .product-prices {
        padding-top: 8px;
        margin-bottom: 8px;
    }
    
    .price-row {
        font-size: 12px; /* Kichikroq narx */
    }
    
    .price-value {
        font-size: 13px;
    }
    
    .min-qty-info {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .btn-sm {
        padding: 8px 12px; /* Kichikroq tugma */
        font-size: 12px;
    }
}

/* ============================================
   JUDA KICHIK TELEFONLAR (360px dan kichik)
   ============================================ */

@media (max-width: 360px) {
    .products-grid {
        gap: 8px; /* Yanada kichik bo'shliq */
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-card h3 {
        font-size: 12px;
    }
}