/*
Theme Name: Impeks Theme
Author: Aziko9
Description: Professional Landing Page for Fruit and Vegetable Export.
Version: 1.0
Text Domain: agroexport
*/

/* Asosiy stillar */
:root {
    --primary-color: #27ae60;
    --secondary-color: #f39c12;
    --dark-color: #2c3e50;
    --light-bg: #f4f7f6;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span { color: var(--secondary-color); }

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/wp-content/uploads/2026/03/Screenshot_5.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.product-card:hover { transform: translateY(-10px); }

.product-img { height: 200px; background-size: cover; background-position: center; }

/* Button */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
}

/* Menyu konteyneri */
.nav-links {
    list-style: none; /* Nuqtalarni yo'qotadi */
    margin: 0;
    padding: 0;
    display: flex; /* Elementlarni yonma-yon qiladi */
}

/* Har bir menyu bandi (li) */
.nav-links li {
    margin-left: 25px; /* Bandlar orasidagi masofa */
}

/* Menyu ichidagi linklar (a) */
.nav-links li a {
    text-decoration: none; /* Ostidagi chiziqni yo'qotadi */
    color: #333; /* Matn rangi */
    font-weight: 600; /* Qalinligi */
    font-size: 16px;
    transition: 0.3s;
}

/* Sichqoncha ustiga kelganda rangi o'zgarishi */
.nav-links li a:hover {
    color: #27ae60; /* Yashil rang (agro-eksportga mos) */
}




/* Mahsulotlar konteyneri */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 ta ustun */
    gap: 20px;
    padding: 40px 0;
}

/* Mahsulot kartochkasi */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    text-align: left;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.product-info .variety {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-info .season {
    font-weight: 600;
    color: #27ae60; /* Yashil rang mavsum uchun */
    font-size: 14px;
}

/* Mobil qurilmalar uchun (Responsive) */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); } /* Planshetda 2 ta */
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; } /* Telefonda 1 ta */
}




.price-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Bir oz farq qilishi uchun och kulrang fon */
}

.price-list-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    line-height: 1.8;
    color: #444;
}

/* Agar sahifa ichida jadval (table) bo'lsa, uni chiroyli qiladi */
.price-list-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.price-list-content table th, 
.price-list-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.price-list-content table th {
    background-color: #27ae60;
    color: white;
}

.price-list-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}




.agro-form .form-row {
    margin-bottom: 15px;
}

.agro-form input, 
.agro-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: 0.3s;
}

.agro-form input:focus, 
.agro-form textarea:focus {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

.btn-agro {
    width: 100%;
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-agro:hover {
    background-color: #219150;
}

/* Xatolik yoki muvaffaqiyat xabarlari stili */
.wpcf7-response-output {
    margin-top: 20px !important;
    border-radius: 8px !important;
    text-align: center;
}



/* Ichki sahifa kontenti uchun stillar */
.entry-content h2, .entry-content h3 {
    margin: 30px 0 15px;
    color: var(--dark);
}

.entry-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content ul li {
    margin-bottom: 10px;
}

/* Sahifa ichidagi rasmlar */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Sahifa ichidagi jadvallar (masalan narxlar uchun) */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table th, .entry-content table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
}

.entry-content table th {
    background-color: var(--primary);
    color: #fff;
}


/* Mahsulot kartochkasidagi barcha havolalarning tagidagi chiziqni yo'qotish */
.product-card a {
    text-decoration: none !important; /* Tagidagi chiziqni o'chiradi */
    color: inherit; /* Rangini o'zidan oldingi (ota) element rangiga moslaydi */
    display: block; /* Butun kartochka maydonini bosiladigan qiladi */
}

/* Havola ustiga sichqoncha kelganda ham chiziq chiqmasligi uchun */
.product-card a:hover {
    text-decoration: none !important;
}

/* Sarlavha rangini qora/to'q rangda saqlash uchun */
.product-card h3 {
    text-decoration: none;
    color: #2c3e50; /* O'zingiz xohlagan rang */
}


/* Barcha sahifalardagi kartochka havolalarini tozalash */
.product-card a, .archive-products a {
    text-decoration: none !important;
    color: inherit;
}