/*
Theme Name: Industrial Pro
Theme URI: https://industrial-pro.com
Description: Universal B2B theme for manufacturers, distributors and service providers. WooCommerce ready with catalog mode support.
Version: 1.0.0
Author: Balasubramaniam
Author URI: https://kovaiguide.co.in
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: industrial-pro
Tags: business, e-commerce, catalog, b2b, industrial
*/

/* ===========================================
   CSS VARIABLES - Easy Customization
   =========================================== */
:root {
    /* Colors - Override in child theme */
    --primary-color: #0066cc;
    --primary-dark: #004999;
    --primary-light: #3385d6;
    --secondary-color: #ff6600;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-gray: #f5f5f5;
    --border-color: #dddddd;
    --success-color: #28a745;
    --whatsapp-color: #25d366;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===========================================
   RESET & BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   LAYOUT CONTAINERS
   =========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-main {
    padding: var(--spacing-lg) 0;
    min-height: 50vh;
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
    background: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

.site-title a {
    color: var(--primary-color);
}

/* ===========================================
   NAVIGATION
   =========================================== */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-sm);
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-color);
    font-weight: 500;
    border-radius: calc(var(--border-radius) / 2);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: calc(var(--border-radius) / 2);
    cursor: pointer;
    font-size: 1.25rem;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #cc5200;
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
}

.btn-whatsapp::before {
    content: "📱";
    font-size: 1.2em;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   WOOCOMMERCE PRODUCT GRID
   =========================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
    margin: var(--spacing-lg) 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: var(--spacing-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) / 2);
    margin-bottom: var(--spacing-sm);
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    min-height: 2.5em;
}

.woocommerce ul.products li.product .price {
    display: none;
}

/* ===========================================
   SINGLE PRODUCT PAGE
   =========================================== */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: var(--spacing-lg) 0;
}

.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: var(--border-radius);
    width: 100%;
}

.single-product .summary h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.single-product .woocommerce-product-details__short-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.single-product .price {
    display: none;
}

/* Product Specifications Table */
.product-specifications {
    background: var(--bg-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.product-specifications h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.product-specifications table {
    width: 100%;
    border-collapse: collapse;
}

.product-specifications tr {
    border-bottom: 1px solid var(--border-color);
}

.product-specifications tr:last-child {
    border-bottom: none;
}

.product-specifications td {
    padding: var(--spacing-sm);
}

.product-specifications td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--text-color);
}

.product-specifications td:last-child {
    color: var(--text-light);
}

/* ===========================================
   INQUIRY FORM
   =========================================== */
.product-inquiry-form {
    background: #f0f8ff;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.product-inquiry-form h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.product-inquiry-form input,
.product-inquiry-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) / 2);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.product-inquiry-form input:focus,
.product-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.product-inquiry-form button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.product-inquiry-form button:hover {
    background: var(--primary-dark);
}

.inquiry-success {
    background: #d4edda;
    color: #155724;
    padding: var(--spacing-sm);
    border-radius: calc(var(--border-radius) / 2);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.inquiry-error {
    background: #f8d7da;
    color: #721c24;
    padding: var(--spacing-sm);
    border-radius: calc(var(--border-radius) / 2);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.site-footer h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.site-footer a {
    color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-sm);
    }
    
    .main-navigation a {
        padding: var(--spacing-sm);
    }
    
    .single-product .product {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }