/*
Theme Name: Vaari Sensors
Theme URI: https://rbra.in
Author: Vaari Team
Description: Custom theme for Vaari Sensors - Precision Engineered for Modern Industry.
Version: 1.0.0
Text Domain: vaari-sensors
*/

:root {
    --brand-color: #0097b2;  /* Vaari Teal */
    --brand-dark: #006f82;
    --text-main: #333;
    --bg-light: #f4f4f4;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-light);
}

/* --- Header --- */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 1rem 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}
.hero-section h1 { font-size: 2.5rem; margin-bottom: 1rem; }

/* --- Buttons --- */
.btn-primary {
    background: var(--white); color: var(--brand-color);
    padding: 10px 25px; text-decoration: none; font-weight: bold; border-radius: 5px;
    display: inline-block; margin-top: 10px;
}

/* --- WhatsApp Button Style --- */
.btn-whatsapp {
    background-color: #25D366; color: white;
    padding: 12px 20px; border-radius: 50px; text-decoration: none;
    font-weight: bold; display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; border: none; cursor: pointer;
}
.btn-whatsapp:hover { background-color: #128C7E; }

/* --- Grid System --- */
.grid-3 { display: grid; gap: 2rem; padding: 2rem 0; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Cards --- */
.feature-card, .product {
    background: var(--white); padding: 1.5rem; border-radius: 8px;
    border-top: 4px solid var(--brand-color); text-align: center;
}

/* Navigation Styles */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: var(--brand-color);
}

/* Hide Sidebar Clutter on Shop Pages */
.woocommerce .widget-area, 
.woocommerce ul.products + ul, 
.woocommerce .sidebar {
    display: none;
}

/* --- FIX SINGLE PRODUCT PAGE LAYOUT --- */

/* 1. Force text to the Left (Overriding the center alignment) */
.single-product .entry-summary, 
.single-product .product {
    text-align: left !important;
}

/* 2. Add breathing room between paragraphs */
.woocommerce-product-details__short-description p {
    margin-bottom: 1.5rem; /* Adds space between text blocks */
}

/* 3. Fix Bullet Points (The dots were looking weird) */
.woocommerce-product-details__short-description ul {
    text-align: left;
    padding-left: 20px; /* Indent the dots */
    margin-bottom: 20px;
}

/* 4. Add Space around the WhatsApp Button */
.btn-whatsapp {
    margin-top: 25px;    /* Space above button */
    margin-bottom: 35px; /* Big space below button (before Tags) */
    display: inline-block;
}

/* 5. Clean up the Tags & Categories area */
.product_meta {
    padding-top: 20px;
    border-top: 1px solid #ddd; /* Adds a light grey separator line */
    font-size: 0.9rem;
    line-height: 1.8; /* More space between lines of tags */
}

/* --- FIX RELATED PRODUCTS SPACING --- */

/* 1. Add a big gap above the Related Products section */
.related.products {
    margin-top: 60px !important;  /* Pushes it far down */
    padding-top: 40px;            /* Adds inner breathing room */
    border-top: 2px solid #f0f0f0; /* Adds a light line to separate it */
}

/* 2. Style the "Related Products" Title */
.related.products > h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center; /* Centers the "Related Products" title */
    color: #333;
}

/* 3. Ensure the grid has space */
.related.products ul.products {
    margin-top: 20px;
}





