/*
Theme Name: Malik Livestock
Theme URI: https://maliklivestock.com
Author: Antigravity AI
Author URI: https://maliklivestock.com
Description: A custom, professional, and responsive WordPress theme for Malik Livestock & Dairy Farm. Includes WooCommerce support, bilingual features, and Qurbani animal layouts.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: maliklivestock
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #1a4314; /* Deep Forest Green */
    --secondary-color: #f7b731; /* Golden Yellow */
    --text-color: #444444;
    --bg-color: #fcfcfc;
    --white: #ffffff;
    --border-radius: 8px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* TOP BAR */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--secondary-color); text-decoration: none; margin-left:15px; font-size:1.1rem; }

/* HEADER */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* HERO SLIDER (CSS Base) */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(26, 67, 20, 0.6), rgba(26, 67, 20, 0.6)), url('https://images.unsplash.com/photo-1570042225831-d98fa7577f1e?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-color);
    transform: skewY(-2deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(247, 183, 49, 0.3);
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* SECTIONS */
.container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--secondary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-content {
    padding: 40px 30px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* WOOCOMMERCE FIXES */
.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 0;
    text-align: center;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    padding: 20px 20px 5px;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0 20px 20px;
    display: block;
}

.woocommerce ul.products li.product .button {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 0 !important;
    width: 100%;
    padding: 15px !important;
    font-weight: 600;
    text-transform: uppercase;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Animal ID Badge */
.animal-id-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* FOOTER */
footer {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 80px;
}

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav { flex-direction: column; gap: 15px; }
}
