/*
Theme Name: Ecom Starter Lite
Theme URI: https://example.com
Author: Amos (Stitch It In Solution World)
Author URI: https://example.com
Description: A lightweight, responsive WooCommerce-ready starter theme you can install and customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecom-starter-lite
Tags: e-commerce, woocommerce, blog, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, sticky-post
*/

:root {
  --container: 1180px;
  --pad: 20px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --border: 1px solid rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-title {
  font-weight: 800;
  letter-spacing: .2px;
}
.site-tagline {
  opacity: .7;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  border: var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  padding: 10px 10px;
  border-radius: 12px;
}
.primary-nav a:hover {
  background: rgba(0,0,0,.04);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: var(--border);
  background: #fff;
}
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  border: var(--border);
  font-size: 12px;
}

.site-main {
  padding: 28px 0;
}

.hero {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}
.hero p {
  margin: 0 0 16px 0;
  opacity: .85;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  border: var(--border);
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.btn.secondary {
  background: #fff;
  color: #111;
}
.btn:hover { opacity: .92; text-decoration: none; }

.card-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.card h3 { margin: 0 0 6px 0; font-size: 16px; }
.card p { margin: 0; opacity: .75; font-size: 14px; }

.site-footer {
  border-top: var(--border);
  padding: 18px 0;
  opacity: .85;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
}
.sidebar {
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .content-area { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }
}
