/* Global sozlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body */
body {
    background: #fafafa;
    padding-top: 70px;
    min-height: 100vh;
    color: #2d3748;
}

/* Navbar */
.navbar {
    background: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #4a90e2;
}

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

.telegram-link {
    color: #4a90e2;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.telegram-link:hover {
    color: #2b6cb0;
}

.subscribe-form {
    display: flex;
    gap: 0.4rem;
}

.subscribe-form input[type="email"] {
    padding: 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    width: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.3);
}

.subscribe-form button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    background: #4a90e2;
    border-radius: 6px;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #2b6cb0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 15px;
}

/* Kategoriyalar */
.categories {
    margin-bottom: 1.5rem;
}

.categories h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.6rem;
}

.category-list {
    display: flex;
    gap: 0.8rem;
    list-style: none;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #e2e8f0;
    padding-top: 10px;
}

.category-list a {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.category-list a:hover {
    background: #4a90e2;
    color: #ffffff;
}

.category-list a.active {
    background: #4a90e2;
    color: #ffffff;
}

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

/* Card */
.card {
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.4rem;
}

.card p strong {
    color: #2d3748;
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: left 0.5s ease, opacity 0.5s ease;
}

.image-slider img.active {
    left: 0;
    opacity: 1;
}

/* Product Image Slider */
.product-image .image-slider {
    max-width: 500px;
    margin: 0 auto;
    height: 400px;
}

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

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 8px;
}

.main-image img.active {
    display: block;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #4a90e2;
}

/* Tugmalar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    background: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Xato va muvaffaqiyat xabarlari */
.error {
    color: #e53e3e;
    background: #fff5f5;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.success {
    color: #38a169;
    background: #f0fff4;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-image {
    flex: 1;
    max-width: 500px;
}

.product-info {
    flex: 1;
    padding: 1rem;
}

.product-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.8rem;
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.product-info p {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.6rem;
}

.product-info p strong {
    color: #2d3748;
}

/* Description */
.description {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.6rem;
}

.description strong {
    color: #2d3748;
}

.description p {
    margin-bottom: 0.8rem;
}

/* Map Section */
.map-section {
    margin: 2rem 0;
    text-align: center;
}

.map-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.map-section iframe {
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Related Products */
.related-products {
    margin-top: 2rem;
}

.related-products h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.6rem;
}

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

.related-products .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Breadcrumb */
.breadcrumb {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2b6cb0;
}

.breadcrumb span {
    color: #2d3748;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #4a90e2;
    color: #ffffff;
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.sidebar-btn:hover {
    background: #2b6cb0;
    transform: translateX(5px);
}

/* Aksiya Sidebar */
.aksiya-sidebar {
    position: fixed;
    top: 18%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.aksiya-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    padding: 10px;
    background: #38a1699c;
    color: #ffffff;
    border-radius: 8px 0 0 8px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
}

.aksiya-info i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.aksiya-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.countdown {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
}

/* Animatsiyalar */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.blink {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobil qurilmalar uchun moslashtirish */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }

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

/* Kontakt tugmasi va formasi */
.contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #38a169;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1100; /* Aksiya-sidebar ustida turishi uchun */
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-button:hover {
    background: #2f855a;
    transform: scale(1.05);
}

.contact-button i {
    font-size: 1.5rem;
}

.contact-button span {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form {
    position: fixed;
    bottom: 80px;
    right: 315px;
    width: 300px;
    max-height: 70vh; /* Ekran balandligining 70% gacha */
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 1100;
    display: none;
    transform: translateX(100%);
    overflow-y: auto; /* Kichik ekranlarda aylantirish */
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.form-header h3 {
    font-size: 1.2rem;
    color: #2d3748;
}

.close-form {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-form:hover {
    color: #e53e3e;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

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

.contact-form .btn {
    width: 100%;
    background: #38a169;
}

.contact-form .btn:hover {
    background: #2f855a;
}

/* Navbar */
.navbar {
    background: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #4a90e2;
}

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

.telegram-link {
    color: #4a90e2;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.telegram-link:hover {
    color: #2b6cb0;
}

.subscribe-form {
    display: flex;
    gap: 0.4rem;
}

.subscribe-form input[type="email"] {
    padding: 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    width: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.3);
}

.subscribe-form button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    background: #4a90e2;
    border-radius: 6px;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #2b6cb0;
}


@media (max-width: 768px) {
    .aksiya-sidebar {
        top: 24%;
    }
    .aksiya-info {
        width: 150px; /* kichikroq kenglik */
        padding: 6px;
        font-size: 0.75rem; /* yozuv ham kichikroq */
    }
    .aksiya-title {
        font-size: 0.75rem; /* kichikroq shrift */
        -webkit-line-clamp: 1; /* faqat 1 qatorda ko‘rsatish */
        margin-bottom: 3px;
    }
    .navbar .container {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .subscribe-form input[type="email"] {
        font-size: 0.5rem;
    }
    .subscribe-form input{
        padding: 3px 7px;
    }
    .subscribe-form .btn {
        padding: 1px 0px;
    }
    .navbar a,
    .subscribe-form input,
    .subscribe-form .btn {
        font-size: 9px; /* kichikroq yozuv */
    }

    .sidebar-btn{
        width: 30px;
        height: 30px;
        font-size: 1.0rem;
        background: #4a90e26b;
    }
    .sidebar-btn:hover{
        background: #4a90e2;
    }
    .nav-right {
        flex-wrap: nowrap;
        gap: 0.8rem;
    }

    .subscribe-form input[type="email"] {
        width: 100%;
    }
    .subscribe-form button{
        width: 100%;

    }

    .category-list {
        gap: 0.6rem;
    }

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

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

    .product-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

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

    .card {
        padding: 0.8rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .product-info h2 {
        font-size: 1.5rem;
    }

    .product-info .price {
        font-size: 1.3rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* orqa fonda */
}
.fire-icon {
    color: orange;
    font-size: 1.4rem;
    animation: flicker 1.2s infinite;
}

/* Olov "titroq" effekti */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}