/*
Theme Name: CookMart
Theme URI: https://cookmart.in/
Author: CookMart
Description: Lightweight, mobile-first WooCommerce storefront theme for the CookMart community grocery platform.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: cookmart
*/
:root{--cm-green:#176b45;--cm-green-dark:#105237;--cm-ink:#17211b;--cm-muted:#66736b;--cm-line:#e5ebe7;--cm-surface:#f5f8f5;--cm-radius:16px;--cm-width:1200px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--cm-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
a{color:var(--cm-green);text-decoration:none}a:hover{color:var(--cm-green-dark);text-decoration:underline}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.cm-container{width:min(var(--cm-width),calc(100% - 40px));margin-inline:auto}
.cm-skip-link{position:absolute;left:-9999px;top:auto}.cm-skip-link:focus{left:12px;top:12px;z-index:9999;background:#fff;padding:12px}
.cm-site-header{border-bottom:1px solid var(--cm-line);background:#fff}
.cm-header-inner{min-height:76px;display:flex;align-items:center;gap:28px}
.cm-brand{display:flex;align-items:center;gap:10px;color:var(--cm-ink);font-size:1.35rem;font-weight:800;letter-spacing:-.04em;white-space:nowrap}
.cm-brand img{max-height:46px;width:auto}.cm-header-search{flex:1;max-width:560px}.cm-header-search form{display:flex}.cm-header-search input[type=search]{width:100%;min-width:0;border:1px solid var(--cm-line);border-radius:999px 0 0 999px;padding:12px 16px}.cm-header-search button{border:0;border-radius:0 999px 999px 0;padding:0 20px;background:var(--cm-green);color:#fff}
.cm-header-actions{display:flex;align-items:center;gap:18px;white-space:nowrap}.cm-header-actions a{font-weight:650}
.cm-nav{border-top:1px solid var(--cm-line)}.cm-nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:12px 0}.cm-nav a{color:var(--cm-ink);font-weight:600;font-size:.94rem}
.cm-main{min-height:55vh}.cm-hero{background:linear-gradient(115deg,#f0f7f1 0%,#f8faf5 65%,#edf5ee 100%);padding:72px 0}.cm-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);align-items:center;gap:48px}.cm-eyebrow{color:var(--cm-green);font-weight:750;text-transform:uppercase;letter-spacing:.11em;font-size:.78rem}.cm-hero h1{font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.04;letter-spacing:-.055em;margin:12px 0 18px;max-width:720px}.cm-hero p{font-size:1.12rem;color:#4d5d52;max-width:620px}.cm-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.cm-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--cm-green);border-radius:999px;background:var(--cm-green);color:#fff;padding:12px 22px;font-weight:700;line-height:1.2}.cm-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--cm-green-dark);color:#fff;text-decoration:none}.cm-button-secondary{background:#fff;color:var(--cm-green)}.cm-hero-art{min-height:270px;border-radius:28px;background:radial-gradient(circle at 50% 42%,#dcebdc 0 20%,transparent 21%),linear-gradient(145deg,#e4f0e5,#f7f8ef);display:grid;place-items:center;color:var(--cm-green);font-size:1.1rem;font-weight:800;text-align:center;padding:28px}
.cm-section{padding:56px 0}.cm-section-muted{background:var(--cm-surface)}.cm-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.cm-section-heading h2{font-size:clamp(1.65rem,3vw,2.35rem);letter-spacing:-.04em;margin:0}.cm-section-heading p{margin:6px 0 0;color:var(--cm-muted)}
.cm-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cm-benefit{border:1px solid var(--cm-line);border-radius:var(--cm-radius);padding:22px;background:#fff}.cm-benefit strong{display:block;margin-bottom:5px}.cm-benefit p{margin:0;color:var(--cm-muted);font-size:.94rem}
.cm-community-cta{border-radius:24px;background:var(--cm-green-dark);color:#fff;padding:34px;display:flex;justify-content:space-between;align-items:center;gap:24px}.cm-community-cta h2{margin:0 0 6px;font-size:1.8rem}.cm-community-cta p{margin:0;color:#dcebe2}.cm-community-cta a{background:#fff;color:var(--cm-green-dark);border-radius:999px;padding:12px 20px;font-weight:750;white-space:nowrap}
.cm-page-header{padding:38px 0 12px}.cm-page-header h1{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em;margin:0}
.site-main{padding-bottom:64px}.cm-content{padding-top:32px}.cm-site-footer{background:#12291d;color:#e7f0e9;padding:42px 0 24px}.cm-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px}.cm-site-footer a{color:#e7f0e9}.cm-footer-title{font-weight:800;font-size:1.15rem}.cm-footer-bottom{border-top:1px solid #365244;margin-top:28px;padding-top:18px;color:#b8cabe;font-size:.88rem}
.woocommerce .products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.woocommerce ul.products li.product{float:none;width:auto;margin:0;padding:14px;border:1px solid var(--cm-line);border-radius:16px}.woocommerce ul.products li.product a img{border-radius:10px;margin-bottom:12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;color:var(--cm-ink);font-weight:700}.woocommerce ul.products li.product .price{color:var(--cm-green);font-weight:750}.woocommerce span.onsale{background:var(--cm-green);min-height:auto;min-width:auto;padding:6px 10px;line-height:1.2}
.woocommerce div.product div.images img{border-radius:16px}.woocommerce div.product .product_title{letter-spacing:-.035em}.woocommerce div.product p.price{color:var(--cm-green);font-weight:800}.woocommerce table.shop_table{border-color:var(--cm-line);border-radius:12px}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid #d7e0d9;border-radius:8px;padding:12px}
.woocommerce-message,.woocommerce-info{border-top-color:var(--cm-green)}.woocommerce-message::before,.woocommerce-info::before{color:var(--cm-green)}
@media(max-width:900px){.cm-header-inner{flex-wrap:wrap;gap:12px;padding:12px 0}.cm-header-search{order:3;flex-basis:100%;max-width:none}.cm-hero-grid{grid-template-columns:1fr}.cm-hero-art{min-height:170px}.woocommerce .products{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-benefits{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.cm-container{width:min(100% - 28px,var(--cm-width))}.cm-header-inner{min-height:auto}.cm-header-actions{margin-left:auto;gap:12px;font-size:.9rem}.cm-nav ul{gap:18px;overflow-x:auto;white-space:nowrap}.cm-hero{padding:48px 0}.cm-hero h1{font-size:2.55rem}.cm-section{padding:40px 0}.cm-section-heading{align-items:start;flex-direction:column}.woocommerce .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.woocommerce ul.products li.product{padding:9px}.cm-benefits{grid-template-columns:1fr}.cm-community-cta{align-items:flex-start;flex-direction:column;padding:26px}.cm-footer-grid{grid-template-columns:1fr;gap:22px}}
