/*
Theme Name: Oman Automation
Theme URI: https://omanautomation.com
Author: Axovia Tech
Author URI: https://omanautomation.com
Description: Custom WooCommerce theme for Oman Automation — gate motors, barriers & remote controls store in Oman. Navy & Gold branding.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: oman-automation
*/

:root{
  --navy:#0b1f3a;
  --navy-deep:#071527;
  --gold:#c9a227;
  --gold-light:#e6c65c;
  --cream:#f7f5ef;
  --ink:#16213a;
  --muted:#5b6478;
  --white:#ffffff;
  --radius:10px;
  --shadow:0 8px 24px rgba(11,31,58,0.10);
}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Inter',sans-serif;color:var(--ink);background:var(--cream);}
h1,h2,h3,h4{font-family:'Poppins',sans-serif;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
img{max-width:100%;display:block;}
.container{max-width:1240px;margin:0 auto;padding:0 20px;}

/* Top bar */
.topbar{background:var(--navy-deep);color:#cfd6e6;font-size:13px;padding:8px 0;}
.topbar .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;}
.topbar a{color:#cfd6e6;}
.topbar .contacts{display:flex;gap:22px;flex-wrap:wrap;}
.topbar .contacts span{display:flex;align-items:center;gap:6px;}
.topbar .gold{color:var(--gold-light);font-weight:600;}
.topbar .right a{margin-left:16px;}

/* Header */
header.main{background:var(--white);padding:18px 0;border-bottom:1px solid #eee;}
header.main .container{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.logo{display:flex;align-items:center;gap:10px;}
.logo .mark{width:44px;height:44px;border-radius:8px;background:linear-gradient(145deg,var(--navy),var(--navy-deep));display:flex;align-items:center;justify-content:center;color:var(--gold);font-family:'Poppins';font-weight:800;font-size:20px;border:2px solid var(--gold);}
.logo img.custom-logo{max-height:48px;width:auto;}
.logo .word{font-family:'Poppins';font-weight:700;font-size:22px;color:var(--navy);line-height:1;}
.logo .word span{color:var(--gold);}
.logo small{display:block;font-size:11px;letter-spacing:2px;color:var(--muted);font-weight:500;margin-top:2px;}

.search-bar{flex:1;max-width:520px;display:flex;border:2px solid var(--navy);border-radius:6px;overflow:hidden;min-width:220px;}
.search-bar input[type="search"],.search-bar input[type="text"]{flex:1;border:none;padding:12px 14px;font-size:14px;outline:none;}
.search-bar button{background:var(--gold);border:none;padding:0 20px;font-weight:700;color:var(--navy-deep);cursor:pointer;}

.header-actions{display:flex;align-items:center;gap:24px;}
.header-actions .item{display:flex;flex-direction:column;font-size:12px;color:var(--muted);text-align:center;}
.header-actions .item .icon{font-size:20px;color:var(--navy);}
.header-actions .cart-count{background:var(--gold);color:var(--navy-deep);border-radius:50%;width:18px;height:18px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;margin-left:4px;}

/* Category nav */
nav.cat-nav{background:var(--navy);}
nav.cat-nav .container{display:flex;overflow-x:auto;}
nav.cat-nav ul{display:flex;}
nav.cat-nav a{white-space:nowrap;color:#e9edf6;padding:14px 18px;font-size:13.5px;font-weight:600;letter-spacing:.3px;border-bottom:3px solid transparent;transition:.2s;display:block;}
nav.cat-nav a:hover{color:var(--gold-light);border-bottom-color:var(--gold);background:rgba(255,255,255,0.03);}

/* Hero */
.hero{position:relative;background:linear-gradient(120deg,var(--navy) 0%,var(--navy-deep) 100%);color:var(--white);overflow:hidden;}
.hero .container{padding:70px 20px 80px;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;}
.hero .eyebrow{color:var(--gold-light);font-weight:700;letter-spacing:3px;font-size:12.5px;margin-bottom:14px;text-transform:uppercase;}
.hero h1{font-size:42px;line-height:1.15;margin-bottom:18px;}
.hero h1 em{font-style:normal;color:var(--gold-light);}
.hero p{color:#c7cfe0;font-size:15.5px;line-height:1.7;max-width:480px;margin-bottom:28px;}
.hero .cta-row{display:flex;gap:14px;flex-wrap:wrap;}
.btn-gold{background:var(--gold);color:var(--navy-deep);padding:14px 26px;border-radius:6px;font-weight:700;font-size:14px;display:inline-block;transition:.2s;border:none;cursor:pointer;}
.btn-gold:hover{background:var(--gold-light);color:var(--navy-deep);}
.btn-outline{border:2px solid rgba(255,255,255,.35);color:#fff;padding:12px 24px;border-radius:6px;font-weight:600;font-size:14px;}
.hero-visual{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:30px;text-align:center;}
.hero-visual .gate-icon{font-size:90px;line-height:1;margin-bottom:14px;}
.hero-visual .brands-mini{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:12px;color:#c7cfe0;}
.hero-visual .brands-mini span{border:1px solid rgba(255,255,255,.25);padding:5px 10px;border-radius:5px;}

.trust-strip{background:var(--white);border-bottom:1px solid #eee;}
.trust-strip .container{display:flex;justify-content:space-between;padding:22px 20px;flex-wrap:wrap;gap:16px;}
.trust-strip .t-item{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--navy);font-weight:600;}
.trust-strip .t-item .icon{font-size:22px;}

/* Section heading */
.section{padding:56px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:30px;flex-wrap:wrap;gap:10px;}
.section-head h2{font-size:26px;color:var(--navy);}
.section-head .rule{height:3px;width:52px;background:var(--gold);margin-top:8px;}
.section-head .view-all{font-size:13px;font-weight:700;color:var(--navy);border-bottom:2px solid var(--gold);padding-bottom:2px;}

/* Categories grid */
.cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.cat-card{background:var(--white);border-radius:var(--radius);padding:22px 14px;text-align:center;box-shadow:var(--shadow);transition:.2s;border:1px solid #eee;}
.cat-card:hover{transform:translateY(-4px);border-color:var(--gold);}
.cat-card .ic{font-size:30px;margin-bottom:10px;}
.cat-card .ic img{width:36px;height:36px;object-fit:cover;border-radius:6px;margin:0 auto;}
.cat-card .name{font-size:12.5px;font-weight:700;color:var(--navy);line-height:1.3;}

/* Products */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.prod-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #eee;transition:.2s;}
.prod-card:hover{box-shadow:0 14px 30px rgba(11,31,58,.16);}
.prod-img{height:170px;background:linear-gradient(160deg,#eef1f7,#e2e7f1);display:flex;align-items:center;justify-content:center;font-size:44px;color:var(--navy);position:relative;overflow:hidden;}
.prod-img img{width:100%;height:100%;object-fit:cover;}
.prod-img .badge{position:absolute;top:10px;left:10px;background:var(--gold);color:var(--navy-deep);font-size:10.5px;font-weight:800;padding:4px 9px;border-radius:4px;letter-spacing:.5px;z-index:2;}
.prod-body{padding:16px;}
.prod-brand{font-size:11px;color:var(--gold);font-weight:800;letter-spacing:1px;margin-bottom:4px;text-transform:uppercase;}
.prod-name{font-size:14.5px;font-weight:700;color:var(--navy);margin-bottom:10px;line-height:1.3;min-height:38px;}
.prod-price{font-size:17px;font-weight:800;color:var(--navy-deep);margin-bottom:12px;}
.prod-price del{color:var(--muted);font-weight:500;font-size:13px;margin-right:6px;}
.prod-price small{font-size:12px;color:var(--muted);font-weight:500;}
.btn-cart{width:100%;background:var(--navy);color:#fff;border:none;padding:11px;border-radius:6px;font-weight:700;font-size:13px;cursor:pointer;transition:.2s;display:block;text-align:center;}
.btn-cart:hover{background:var(--gold);color:var(--navy-deep);}

/* Brands strip */
.brands-section{background:var(--white);padding:44px 0;border-top:1px solid #eee;border-bottom:1px solid #eee;}
.brands-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;}
.brand-badge{font-family:'Poppins';font-weight:800;font-size:16px;color:var(--navy);opacity:.55;transition:.2s;letter-spacing:.5px;}
.brand-badge:hover{opacity:1;color:var(--gold);}

/* Why us */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.why-card{text-align:center;padding:10px;}
.why-card .ic{width:60px;height:60px;border-radius:50%;background:var(--navy);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:26px;margin:0 auto 14px;}
.why-card h4{font-size:15px;color:var(--navy);margin-bottom:8px;}
.why-card p{font-size:13px;color:var(--muted);line-height:1.6;}

/* WhatsApp CTA band */
.cta-band{background:linear-gradient(120deg,var(--navy),var(--navy-deep));color:#fff;padding:40px 0;text-align:center;}
.cta-band h3{font-size:24px;margin-bottom:10px;color:#fff;}
.cta-band p{color:#c7cfe0;margin-bottom:20px;font-size:14px;}

/* Footer */
footer{background:var(--navy-deep);color:#c7cfe0;padding:56px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:32px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.1);}
footer h5{color:var(--gold-light);font-size:14px;letter-spacing:1px;margin-bottom:18px;font-family:'Poppins';}
footer .about p{font-size:13px;line-height:1.8;color:#a9b3c9;margin-bottom:14px;}
footer ul li{margin-bottom:10px;font-size:13.5px;}
footer ul li a:hover{color:var(--gold-light);}
.foot-social a{display:inline-flex;width:34px;height:34px;border:1px solid rgba(255,255,255,.2);border-radius:50%;align-items:center;justify-content:center;margin-right:8px;font-size:14px;}
.bottom-bar{text-align:center;font-size:12.5px;color:#8994ac;padding:20px 0;}

.wa-float{position:fixed;bottom:24px;right:24px;background:#25D366;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;box-shadow:0 8px 22px rgba(0,0,0,.25);z-index:999;}

/* Generic page/content wrapper for inner pages & WooCommerce archive/single */
.site-main{padding:40px 0 60px;background:var(--cream);min-height:40vh;}
.woo-wrap ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;list-style:none;}
.woo-wrap ul.products li.product{background:var(--white);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);border:1px solid #eee;}
.woo-wrap .woocommerce-breadcrumb{margin-bottom:20px;font-size:13px;color:var(--muted);}
.woo-wrap .price{color:var(--navy-deep);font-weight:800;}
.woo-wrap a.button{background:var(--navy);color:#fff;padding:10px 16px;border-radius:6px;font-weight:700;font-size:13px;display:inline-block;margin-top:8px;}
.woo-wrap a.button:hover{background:var(--gold);color:var(--navy-deep);}

@media(max-width:1024px){
  .cat-grid{grid-template-columns:repeat(3,1fr);}
  .prod-grid,.woo-wrap ul.products{grid-template-columns:repeat(2,1fr);}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .hero .container{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .prod-grid,.woo-wrap ul.products{grid-template-columns:1fr 1fr;}
  .hero h1{font-size:30px;}
}
