/*
Theme Name: ChemRexn Core
Theme URI: https://chemrexn.com
Description: Minimal WordPress theme for ChemRexn Private Limited. Designed to work with custom plugins.
Version: 1.0.0
Author: ChemRexn Pvt. Ltd.
Author URI: https://chemrexn.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chemrexn-core
Domain Path: /languages
*/

/* ========================================================
   Base Reset & Typography
   ======================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ========================================================
   Header & Navigation
   ======================================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    height: 64px;
    max-width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-logo-box {
    width: 44px;
    height: 44px;
    background: #1E4F9C;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo-img {
    max-width: 100%;
    height: auto;
}

.site-logo-placeholder {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-title a:hover {
    color: #1E4F9C;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    margin: 0 2rem;
}

.site-navigation a,
.site-navigation .menu a {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

.site-navigation a:hover,
.site-navigation .menu a:hover {
    color: #1E4F9C;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.site-navigation ul li {
    margin: 0;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.site-search {
    display: flex;
    align-items: center;
}

.site-search form {
    display: flex;
    align-items: center;
    background: #f5f5f3;
    border-radius: 6px;
    padding: 0 10px;
}

.site-search-input {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 13px;
    width: 150px;
    outline: none;
}

.site-search-input::placeholder {
    color: #999;
}

.site-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1E4F9C;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-search-btn:hover {
    color: #0C3570;
}

.site-cart-link {
    position: relative;
    color: #1E4F9C;
    font-size: 18px;
    transition: color 0.15s;
}

.site-cart-link:hover {
    color: #1B5E20;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1B5E20;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #1a1a1a;
}

/* ========================================================
   Footer
   ======================================================== */

.site-footer {
    background: #0C3570;
    color: rgba(255,255,255,.65);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 4rem;
}

.site-footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.site-footer-column {
    display: flex;
    flex-direction: column;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.site-footer-logo {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-footer-logo span {
    font-size: 11px;
    font-weight: 700;
    color: #1E4F9C;
    letter-spacing: -0.5px;
}

.site-footer-brand-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.site-footer-tagline {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    line-height: 1.6;
    margin: 0;
}

.site-footer-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,.5);
    margin: 0 0 12px 0;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    transition: color 0.15s;
    text-decoration: none;
}

.site-footer-links a:hover {
    color: #fff;
}

.site-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-contact p {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer-contact i {
    font-size: 15px;
    color: #1B5E20;
    flex-shrink: 0;
}

.site-footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    color: rgba(255,255,255,.7);
    text-align: center;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-legal {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-footer-legal a {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer-legal a:hover {
    color: rgba(255,255,255,.7);
}

/* ========================================================
   Responsive
   ======================================================== */

@media (max-width: 900px) {
    .site-search {
        display: none;
    }

    .site-navigation {
        display: none;
    }

    .site-header-inner {
        height: 56px;
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .site-footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .site-header-inner {
        padding: 0 1rem;
    }

    .site-branding {
        gap: 8px;
    }

    .site-logo-box {
        width: 40px;
        height: 40px;
    }

    .site-title {
        font-size: 14px;
    }

    .site-header-actions {
        gap: 1rem;
    }

    .site-search-input {
        width: 120px;
        font-size: 12px;
    }

    body {
        font-size: 14px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .site-footer {
        padding: 2rem 1.5rem 1rem;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-footer-legal {
        width: 100%;
        justify-content: flex-start;
    }
}