/*
Theme Name: ChecOne
Theme URI: https://chenco.com/
Author: ChecOne
Author URI: https://chenco.com/
Description: ChecOne — a clean, fast, mobile-first WooCommerce theme for Pakistan fashion e-commerce. Export quality at factory prices: women's, men's and kids' clothing, footwear, home textiles and accessories, with COD, free shipping on prepaid orders and 30-day returns. Works with WooCommerce and Elementor (the ChecOne Elementor kit provides the editable page designs; this theme provides the header, footer, menus and shop structure).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: checone
Tags: e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, grid-layout
*/

/* ============================================================
   ChecOne 1.0.0 — palette & tokens
   Ink #121212 · Ivory #F7F3EC · White #FFFFFF
   Terracotta #D95D39 · Deep Green #1E3A2F · Muted #6B6B6B
   ============================================================ */
:root {
  --checone-ink: #121212;
  --checone-ivory: #F7F3EC;
  --checone-white: #FFFFFF;
  --checone-terra: #D95D39;
  --checone-terra-dark: #B84A28;
  --checone-green: #1E3A2F;
  --checone-muted: #6B6B6B;
  --checone-border: #E7E0D3;
  --checone-radius: 14px;
  --checone-max: 1200px;
  --checone-font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --checone-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--checone-white); color: var(--checone-ink);
  font-family: var(--checone-font-body); font-size: 16px; line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--checone-ink); text-decoration: none; }
a:hover { color: var(--checone-terra); }
h1, h2, h3, h4 { font-family: var(--checone-font-head); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--checone-terra); outline-offset: 2px; }
.container { max-width: var(--checone-max); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--checone-ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn, .button, .woocommerce a.button, .woocommerce button.button {
  display: inline-block; min-height: 48px; line-height: 1.2; padding: 14px 26px;
  background: var(--checone-ink); color: #fff; border: 2px solid var(--checone-ink);
  border-radius: 999px; font-weight: 700; font-size: 15px; text-align: center; cursor: pointer;
}
.btn:hover, .button:hover { background: var(--checone-terra); border-color: var(--checone-terra); color: #fff; }
.btn-terra { background: var(--checone-terra); border-color: var(--checone-terra); }
.btn-terra:hover { background: var(--checone-terra-dark); border-color: var(--checone-terra-dark); }
.btn-outline { background: transparent; color: var(--checone-ink); }
.btn-outline:hover { background: var(--checone-ink); color: #fff; }

/* ---------- Announcement bar ---------- */
.announcement-bar { background: var(--checone-ink); color: #fff; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 10px 16px; }
.announcement-bar a { color: #FFD9C8; text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--checone-border); }
.header-inner { max-width: var(--checone-max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.site-branding { flex: 0 0 auto; }
.site-logo, .site-title { font-family: var(--checone-font-head); font-size: 30px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.site-logo span, .site-title span { color: var(--checone-terra); }
.site-logo img { max-height: 44px; width: auto; }
.main-navigation { flex: 1 1 auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; }
.main-navigation a { display: block; padding: 10px 2px; font-size: 14.5px; font-weight: 600; }
.main-navigation .current-menu-item a, .main-navigation .current_page_item a { color: var(--checone-terra); border-bottom: 2px solid var(--checone-terra); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-actions .search-form { display: flex; }
.header-actions .search-field { border: 1px solid var(--checone-border); border-radius: 999px 0 0 999px; padding: 10px 14px; min-height: 44px; width: 170px; }
.header-actions .search-submit { border: 1px solid var(--checone-ink); background: var(--checone-ink); color: #fff; border-radius: 0 999px 999px 0; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 700; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--checone-terra); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 999px; padding: 0 5px; }
.menu-toggle { display: none; background: var(--checone-ink); color: #fff; border: 0; border-radius: 10px; min-width: 48px; min-height: 48px; font-size: 22px; cursor: pointer; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--checone-border); padding: 8px 24px 20px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--checone-ivory); }

/* ---------- Hero ---------- */
.hero { background: var(--checone-ivory); padding: 64px 0; }
.hero-inner { max-width: var(--checone-max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow { color: var(--checone-terra); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: var(--checone-muted); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media img { border-radius: var(--checone-radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--checone-green); color: #fff; padding: 22px 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-bar strong { display: block; font-size: 15px; }
.trust-bar span { font-size: 13px; opacity: .85; }

/* ---------- Sections / categories ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 34px; font-weight: 800; margin: 0; }
.section-head a { font-weight: 700; color: var(--checone-terra); white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile { position: relative; border-radius: var(--checone-radius); overflow: hidden; background: var(--checone-ivory); min-height: 220px; display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile .cat-label { position: relative; background: rgba(255,255,255,.94); margin: 14px; padding: 12px 16px; border-radius: 10px; }
.cat-tile .cat-label strong { display: block; font-size: 17px; }
.cat-tile .cat-label span { font-size: 13px; color: var(--checone-muted); }

/* ---------- Product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.product-card { border: 1px solid var(--checone-border); border-radius: var(--checone-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.product-card .product-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--checone-ivory); }
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--checone-terra); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.product-badge.sale { background: var(--checone-green); }
.product-card .product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 16px; margin: 0; }
.product-card .product-brand { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--checone-muted); font-weight: 700; }
.product-card .price { font-weight: 800; font-size: 17px; }
.product-card .price del { color: var(--checone-muted); font-weight: 500; font-size: 14px; margin-left: 8px; }
.product-card .button { margin-top: auto; width: 100%; }

/* WooCommerce product loop */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; border: 1px solid var(--checone-border); border-radius: var(--checone-radius); overflow: hidden; padding-bottom: 16px; }
.woocommerce ul.products li.product img { margin: 0 0 12px; }
.woocommerce ul.products li.product .price { color: var(--checone-ink); font-weight: 800; }
.woocommerce span.onsale { background: var(--checone-terra); min-height: 44px; min-width: 44px; line-height: 44px; }

/* ---------- Banners, features, testimonials ---------- */
.banner { background: var(--checone-green); color: #fff; border-radius: var(--checone-radius); padding: 48px; text-align: center; }
.banner h2 { font-size: 32px; color: #fff; }
.banner p { opacity: .9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--checone-ivory); border-radius: var(--checone-radius); padding: 28px; }
.feature-card h3 { font-size: 19px; }
.demo-note { background: #FFF4E5; border: 1px solid #F5C97B; color: #6B4E00; border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 20px; }

/* ---------- Content / pages ---------- */
.page-hero { background: var(--checone-ivory); padding: 48px 0; text-align: center; }
.page-hero h1 { font-size: 42px; }
.entry-content { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.entry-content img { border-radius: var(--checone-radius); }
.post-list article { border-bottom: 1px solid var(--checone-border); padding: 28px 0; }
.post-list h2 { font-size: 26px; }
.post-meta { color: var(--checone-muted); font-size: 13px; margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; padding: 32px 0; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--checone-border); border-radius: 10px; padding: 0 12px; }
.pagination .current { background: var(--checone-ink); color: #fff; border-color: var(--checone-ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--checone-ivory); border-radius: var(--checone-radius); padding: 24px; }
.contact-card h3 { font-size: 18px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  width: 100%; border: 1px solid var(--checone-border); border-radius: 10px; padding: 12px 14px; min-height: 48px; background: #fff;
}
label { font-weight: 600; display: block; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--checone-ink); color: #fff; margin-top: 64px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0 32px; }
.footer-widgets h3, .footer-widgets .widget-title { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { margin-bottom: 8px; }
.footer-widgets a { color: #D8D2C4; }
.footer-widgets a:hover { color: #fff; }
.site-footer .site-logo, .site-footer .site-title { color: #fff; }
.footer-bottom { border-top: 1px solid #2A2A2A; padding: 20px 0; font-size: 13px; color: #B9B2A2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input { border-radius: 999px; }
.newsletter-form button { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 80px 24px; }
.error-404 h1 { font-size: 64px; }

/* ============================================================
   Responsive — 1020px / 720px / 430px
   ============================================================ */
@media (max-width: 1020px) {
  .main-navigation { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu.toggled { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 42px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
  .header-actions .search-form { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid, .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .banner { padding: 32px 20px; }
  .banner h2 { font-size: 26px; }
  .site-logo, .site-title { font-size: 24px; }
  .header-inner { padding: 12px 16px; gap: 12px; }
  .container { padding: 0 16px; }
  .btn, .button { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 40%; }
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 30px; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card .product-info { padding: 12px; }
  .product-card h3 { font-size: 14px; }
  .announcement-bar { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
