/*
Theme Name: Industrial Catalog Theme
Theme URI: 
Author: Antigravity
Author URI: 
Description: A custom B2B catalog theme for industrial automation products.
Version: 4.1
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: indcatalog
Tags: custom-colors, custom-menu, e-commerce, grid-layout, portfolio, two-columns
*/

/* Variables */
:root {
    --primary-blue: #444bf8;
    --dark-gray: #383838;
    --bg-color: #F7FAFC;
    --text-color: #383838;
    --border-color: #E2E8F0;
    --whatsapp-green: #25D366;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-gray);
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 14px;
    padding: 8px 0;
}

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

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar .contact-info span {
    margin-right: 20px;
    display: inline-block;
}

.top-bar .top-whatsapp {
    background-color: var(--whatsapp-green);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    color: var(--dark-gray);
}

.site-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

.site-branding .custom-logo {
    width: 200px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

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

.main-navigation a {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
}

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

/* Layout Utilities */
.site-main {
    padding: 40px 0;
}

/* Elementor Full Width Compatibility */
.elementor-page .site-main {
    padding: 0 !important;
}

.elementor-page .site-main > .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Grid Layout for Products */
.products-grid,
.site-main ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 !important;
}

@media (max-width: 992px) {
    .site-main ul.products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .site-main ul.products,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

.site-main ul.products::before,
.site-main ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

.product-item,
.site-main ul.products li.product {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.product-item:hover,
.site-main ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-blue);
}

.product-item img,
.site-main ul.products li.product img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-item h2.woocommerce-loop-product__title,
.site-main ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark-gray);
    padding: 0;
    font-weight: 600;
}

/* Single Product Page */
.single-product .product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

.single-product .woocommerce-product-gallery {
    flex: 1 1 400px;
}

.single-product .summary {
    flex: 1 1 400px;
}

.single-product .product_title {
    font-size: 32px;
    margin-top: 0;
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-block;
    background-color: var(--whatsapp-green);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.single-product .whatsapp-button {
    width: auto;
    font-size: 16px;
    padding: 12px 25px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Footer */
.site-footer {
    background-color: var(--dark-gray);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .site-header .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Native Language Switcher Styles */
.native-lang-switcher .lang-opt {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    padding: 2px 4px;
}
.native-lang-switcher .lang-opt:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Hide Google Translate Default Banner & Fix Body Shift */
body {
    top: 0 !important;
}
.skiptranslate, 
.goog-te-banner-frame,
#goog-gt-tt {
    display: none !important;
}
