/*
Theme Name: GameXspace Custom
Theme URI: https://www.gamexspace.in/
Author: GameXspace
Description: Lightweight Elementor-compatible custom WooCommerce theme inspired by a modern Indian IT products storefront.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gamexspace
*/

:root{
  --gx-green:#087a3b;
  --gx-green-dark:#07552d;
  --gx-orange:#f26b21;
  --gx-blue:#07316f;
  --gx-text:#222;
  --gx-muted:#666;
  --gx-border:#e6e6e6;
  --gx-bg:#fff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--gx-text);background:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select{font:inherit}
.site-container{width:min(1500px,94%);margin:auto}

/* Elementor compatibility */
.elementor-page .site-content{padding:0}
.elementor-page .content-area{width:100%}

/* Top bar */
.gx-topbar{background:var(--gx-blue);color:#fff;font-size:12px}
.gx-topbar-inner{height:32px;display:flex;align-items:center;justify-content:space-between}
.gx-topbar a{margin-left:18px}
.gx-topbar a:hover{color:#ffd4b8}

/* Main header */
.gx-header{background:#fff}
.gx-header-main{min-height:86px;display:flex;align-items:center;gap:24px}
.gx-logo{font-size:29px;font-weight:900;letter-spacing:1px;color:#0b2c66;white-space:nowrap}
.gx-logo span{color:var(--gx-orange)}
.gx-tagline{display:block;font-size:10px;color:#555;letter-spacing:.7px;text-align:center;font-weight:600}
.gx-search{display:flex;flex:1;max-width:650px;height:42px;border:1px solid #ddd;border-radius:3px;overflow:hidden}
.gx-search select{border:0;border-right:1px solid #ddd;background:#f8f8f8;padding:0 12px}
.gx-search input{flex:1;border:0;padding:0 15px;outline:none}
.gx-search button{border:0;background:var(--gx-orange);color:#fff;padding:0 22px;font-weight:700;cursor:pointer}
.gx-actions{display:flex;gap:20px;align-items:center}
.gx-action{font-size:12px;text-align:center;white-space:nowrap}
.gx-action strong{display:block;font-size:13px;color:#153b75}
.gx-cart{font-weight:700;color:#153b75}

/* Navigation */
.gx-nav{background:linear-gradient(90deg,var(--gx-orange) 0 15%,var(--gx-green) 15% 100%);color:#fff}
.gx-nav-inner{display:flex;align-items:center;min-height:40px}
.gx-brand-menu{width:15%;font-weight:800;padding:11px 20px}
.gx-menu{display:flex;align-items:center;flex:1;list-style:none;margin:0;padding:0;overflow:auto}
.gx-menu li{white-space:nowrap}
.gx-menu a{display:block;padding:12px 15px;font-size:13px;font-weight:600}
.gx-menu a:hover{background:rgba(255,255,255,.13)}
.gx-offer{background:#e51d2a;padding:10px 18px!important;border-radius:2px}

/* Elementor/custom hero */
.gx-hero{width:100%;background:#f7f4e9;overflow:hidden}
.gx-hero img{display:block;width:100%;height:auto}
.gx-notice{background:#07522d;color:#fff;text-align:center;padding:16px 20px;font-size:24px;font-weight:800}

/* Brand/category rows */
.gx-section{padding:22px 0}
.gx-row{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin}
.gx-card{border:1px solid #e4ece7;background:#fff;min-width:110px;height:82px;display:flex;align-items:center;justify-content:center;border-radius:3px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.gx-card img{max-height:52px;object-fit:contain}
.gx-category{min-width:112px;height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #edf0ef;border-radius:3px}
.gx-category img{height:52px;width:62px;object-fit:contain;margin-bottom:7px}
.gx-category span{font-size:11px;color:#333;text-align:center}

/* Footer */
.gx-footer{background:#082d20;color:#fff;margin-top:40px}
.gx-footer-main{padding:45px 0;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:35px}
.gx-footer h3{margin-top:0;font-size:17px}
.gx-footer p,.gx-footer a{font-size:13px;color:#d9e5df;line-height:1.7}
.gx-footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:16px 0;font-size:12px;text-align:center}

/* WooCommerce */
.woocommerce ul.products li.product{border:1px solid #eee;padding:15px;border-radius:4px}
.woocommerce ul.products li.product .button{background:var(--gx-green);color:#fff}
.woocommerce span.onsale{background:var(--gx-orange)}

/* Responsive */
@media(max-width:1100px){
  .gx-actions{gap:10px}
  .gx-action:nth-child(2){display:none}
  .gx-brand-menu{width:auto}
  .gx-nav{background:var(--gx-green)}
}
@media(max-width:800px){
  .gx-topbar{display:none}
  .gx-header-main{flex-wrap:wrap;padding:12px 0}
  .gx-logo{font-size:24px}
  .gx-search{order:3;max-width:none;flex-basis:100%}
  .gx-actions{margin-left:auto}
  .gx-brand-menu{display:none}
  .gx-menu a{padding:12px 10px;font-size:12px}
  .gx-notice{font-size:17px}
  .gx-footer-main{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .gx-actions .gx-action{display:none}
  .gx-cart{display:block}
  .gx-search select{display:none}
  .gx-footer-main{grid-template-columns:1fr}
}
