/*
Theme Name: LightWave Pro
Theme URI: https://example.com/lightwave-pro
Author: Custom Developer
Description: Lightweight, high-performance WordPress theme with Astra & OceanWP inspired features, device-specific responsive controls, and built-in e-commerce & portfolio functions.
Version: 2.0.0
Text Domain: lightwave
*/

:root {
    --lw-container-w: 1200px;
    --lw-content-gap: 30px;
    --lw-primary-color: #0073aa;
    --lw-font-size: 16px;
    --lw-header-height: 80px;
    --lw-grid-cols: 3;
}

@media (max-width: 1024px) {
    :root {
        --lw-container-w: 100%;
        --lw-content-gap: 20px;
        --lw-font-size: 15px;
        --lw-grid-cols: 2;
    }
}

@media (max-width: 767px) {
    :root {
        --lw-container-w: 100%;
        --lw-content-gap: 15px;
        --lw-font-size: 14px;
        --lw-grid-cols: 1;
    }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; font-size: var(--lw-font-size); line-height: 1.6; color: #333; background-color: #f8f9fa; }

.site-container { max-width: var(--lw-container-w); margin: 0 auto; padding: 0 20px; }
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; height: var(--lw-header-height); position: relative; z-index: 99; }
.site-header.is-sticky { position: fixed; top: 0; left: 0; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.05); animation: slideDown 0.3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 24px; }
.main-navigation a { text-decoration: none; color: #1a202c; font-weight: 500; transition: color 0.2s; }
.main-navigation a:hover { color: var(--lw-primary-color); }

.hide-desktop { display: none !important; }
@media (max-width: 1024px) {
    .hide-tablet { display: none !important; }
    .hide-desktop { display: block !important; }
}
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

.content-area-wrapper { display: flex; gap: var(--lw-content-gap); margin: 40px auto; flex-wrap: wrap; }
.site-main { flex: 1 1 0%; min-width: 0; }
.site-sidebar { width: 300px; flex-shrink: 0; }
@media (max-width: 1024px) { .site-sidebar { width: 100%; } }

.mobile-nav-toggle { background: none; border: none; font-size: 24px; cursor: pointer; padding: 5px; }
.offcanvas-menu { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background: #fff; z-index: 9999; transition: right 0.3s ease; box-shadow: -2px 0 10px rgba(0,0,0,0.1); padding: 30px 20px; overflow-y: auto; }
.offcanvas-menu.is-active { right: 0; }
.offcanvas-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; display: none; }
.offcanvas-overlay.is-active { display: block; }
.offcanvas-menu ul { list-style: none; padding: 0; margin: 20px 0; }
.offcanvas-menu li { margin-bottom: 15px; border-bottom: 1px solid #edf2f7; padding-bottom: 10px; }

.offcanvas-cart { position: fixed; top: 0; right: -400px; width: 400px; max-width: 100%; height: 100%; background: #fff; z-index: 9999; transition: right 0.3s ease; box-shadow: -2px 0 12px rgba(0,0,0,0.15); padding: 20px; display: flex; flex-direction: column; }
.offcanvas-cart.is-active { right: 0; }
.offcanvas-cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }
.offcanvas-cart-body { flex: 1; overflow-y: auto; padding: 20px 0; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(var(--lw-grid-cols), 1fr) !important; gap: 20px !important; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 15px; position: relative; }

.lw-quickview-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #1a202c; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; opacity: 0; transition: opacity 0.2s ease; }
.woocommerce ul.products li.product:hover .lw-quickview-btn { opacity: 1; }
.lw-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 10000; display: none; align-items: center; justify-content: center; }
.lw-modal.is-active { display: flex; }
.lw-modal-content { background: #fff; width: 800px; max-width: 90%; max-height: 90vh; border-radius: 8px; overflow-y: auto; padding: 30px; position: relative; }
.lw-modal-close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; border: none; background: none; }