/*
Theme Name: OpenAGI Commerce
Theme URI: https://openagi.sbs/
Author: OpenAGI
Description: A presentation-only B2B WooCommerce theme for global sourcing, quotes and fulfillment.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: openagi-commerce-theme
*/

:root {
    --og-navy: #0b1f33;
    --og-blue: #155eef;
    --og-blue-dark: #0b4fc4;
    --og-ink: #17263a;
    --og-muted: #5f6f83;
    --og-line: #d8e1eb;
    --og-band: #f4f8fc;
    --og-white: #fff;
    --og-max: 1360px;
    --og-radius: 2px;
    --og-shadow: 0 14px 36px rgba(11, 31, 51, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--og-white); color: var(--og-ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
body, button, input, select, textarea { font-weight: 450; }
a { color: var(--og-blue); text-decoration: none; }
a:hover { color: var(--og-blue-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
.og-container { width: min(var(--og-max), calc(100% - 48px)); margin: 0 auto; }
.og-main { min-height: 55vh; }
.og-icon { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { background: var(--og-navy); color: #fff; left: 8px; padding: 8px 12px; position: absolute; top: -60px; z-index: 1000; }
.skip-link:focus { top: 8px; }

/* Header */
.og-utility { border-bottom: 1px solid var(--og-line); color: var(--og-muted); font-size: 13px; }
.og-utility__inner { align-items: center; display: flex; justify-content: space-between; min-height: 34px; }
.og-utility__left, .og-utility__right { align-items: center; display: flex; gap: 24px; }
.og-utility a { color: var(--og-muted); }
.og-utility a:hover { color: var(--og-blue); }
.og-utility .og-icon { color: var(--og-blue); height: 15px; margin-right: 4px; width: 15px; }
.og-brandbar { border-bottom: 1px solid var(--og-line); }
.og-brandbar__inner { align-items: center; display: grid; gap: 32px; grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.6fr) auto; min-height: 78px; }
.og-brand { color: var(--og-navy); font-size: clamp(21px, 2.1vw, 29px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.og-brand:hover { color: var(--og-navy); }
.og-search { display: flex; }
.og-search input { border: 1px solid var(--og-line); border-radius: var(--og-radius) 0 0 var(--og-radius); color: var(--og-ink); min-height: 42px; padding: 0 14px; width: 100%; }
.og-search input:focus { border-color: var(--og-blue); outline: 2px solid rgba(21, 94, 239, .15); }
.og-search button { align-items: center; background: var(--og-blue); border: 0; color: #fff; display: flex; justify-content: center; min-width: 50px; }
.og-search button:hover { background: var(--og-blue-dark); }
.og-search .og-icon { width: 20px; }
.og-actions { align-items: center; display: flex; gap: 22px; white-space: nowrap; }
.og-action { align-items: center; color: var(--og-navy); display: inline-flex; font-size: 14px; gap: 7px; }
.og-action:hover { color: var(--og-blue); }
.og-action .og-icon { color: var(--og-blue); width: 20px; }
.og-cart { border-left: 1px solid var(--og-line); padding-left: 20px; position: relative; }
.og-cart__count { align-items: center; background: var(--og-blue); border-radius: 50%; color: #fff; display: inline-flex; font-size: 10px; height: 17px; justify-content: center; position: absolute; right: -9px; top: -7px; width: 17px; }
.og-nav { border-bottom: 1px solid var(--og-line); }
.og-nav__inner { align-items: center; display: flex; gap: 6px; min-height: 48px; }
.og-nav__toggle { align-items: center; background: transparent; border: 0; color: var(--og-navy); display: inline-flex; font-size: 14px; font-weight: 650; gap: 8px; padding: 12px 14px 12px 0; }
.og-nav__toggle .og-icon { width: 18px; }
.og-nav__items { display: flex; flex: 1; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.og-nav__item { position: relative; }
.og-nav__link { align-items: center; color: var(--og-navy); display: inline-flex; font-size: 13px; gap: 7px; padding: 14px 12px; white-space: nowrap; }
.og-nav__link::after { border: solid var(--og-muted); border-width: 0 1px 1px 0; content: ""; display: inline-block; padding: 3px; transform: rotate(45deg) translateY(-2px); }
.og-nav__item:hover .og-nav__link, .og-nav__link:focus { color: var(--og-blue); }
.og-nav__mega { background: #fff; border: 1px solid var(--og-line); box-shadow: var(--og-shadow); display: none; left: 0; min-width: 235px; padding: 12px 0; position: absolute; top: 100%; z-index: 30; }
.og-nav__item:hover .og-nav__mega, .og-nav__item:focus-within .og-nav__mega { display: block; }
.og-nav__mega a { color: var(--og-ink); display: block; font-size: 13px; padding: 8px 16px; }
.og-nav__mega a:hover { background: var(--og-band); color: var(--og-blue); }

/* Shared UI */
.og-button { align-items: center; border: 1px solid var(--og-blue); display: inline-flex; font-size: 15px; font-weight: 700; justify-content: center; min-height: 44px; padding: 0 24px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.og-button:hover { transform: translateY(-1px); }
.og-button--primary { background: var(--og-blue); color: #fff; }
.og-button--primary:hover { background: var(--og-blue-dark); color: #fff; }
.og-button--outline { background: transparent; color: var(--og-blue); }
.og-button--outline:hover { background: rgba(21, 94, 239, .06); color: var(--og-blue-dark); }
.og-section { padding: 48px 0; }
.og-section--band { background: var(--og-band); }
.og-section__heading { color: var(--og-navy); font-size: clamp(21px, 2vw, 26px); letter-spacing: -.025em; margin: 0 0 22px; }
.og-section__heading a { font-size: 13px; font-weight: 600; letter-spacing: 0; margin-left: 12px; }
.og-muted { color: var(--og-muted); }

/* Homepage */
.og-hero { overflow: hidden; }
.og-hero__inner { align-items: center; display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr); min-height: 305px; padding: 38px 0 32px; }
.og-hero h1 { color: var(--og-navy); font-size: clamp(38px, 5vw, 62px); letter-spacing: -.055em; line-height: 1.03; margin: 0 0 14px; max-width: 670px; }
.og-hero p { color: var(--og-ink); font-size: 17px; line-height: 1.45; margin: 0 0 24px; max-width: 630px; }
.og-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.og-hero__art { align-items: center; display: flex; justify-content: center; min-height: 250px; }
.og-hero__art img { max-height: 278px; object-fit: contain; width: 100%; }
.og-trust { background: var(--og-band); border-bottom: 1px solid #e5edf5; border-top: 1px solid #e5edf5; }
.og-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.og-trust__item { align-items: center; border-right: 1px solid var(--og-line); display: flex; gap: 12px; min-height: 68px; padding: 10px 20px; }
.og-trust__item:first-child { padding-left: 0; }
.og-trust__item:last-child { border-right: 0; }
.og-trust__item .og-icon { color: var(--og-blue); flex: 0 0 auto; width: 27px; }
.og-trust__item strong { color: var(--og-navy); display: block; font-size: 14px; line-height: 1.25; }
.og-trust__item span { color: var(--og-muted); display: block; font-size: 12px; line-height: 1.35; }
.og-category__layout { align-items: stretch; display: grid; gap: 24px; grid-template-columns: 1fr 290px; }
.og-category__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.og-category-card { align-items: center; border: 1px solid var(--og-line); color: var(--og-navy); display: flex; flex-direction: column; justify-content: center; min-height: 112px; padding: 14px 8px; text-align: center; }
.og-category-card + .og-category-card { border-left: 0; }
.og-category-card .og-icon { color: var(--og-blue); height: 29px; margin-bottom: 10px; width: 29px; }
.og-category-card span { font-size: 12px; font-weight: 700; line-height: 1.25; }
.og-category-card:hover { background: var(--og-band); color: var(--og-blue); }
.og-category__aside { border: 1px solid var(--og-line); display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; }
.og-category__aside h3 { color: var(--og-navy); font-size: 16px; margin: 0 0 7px; }
.og-category__aside p { color: var(--og-muted); font-size: 13px; margin: 0 0 12px; }
.og-category__aside a { font-size: 13px; font-weight: 650; }
.og-inquiry { background: var(--og-band); }
.og-inquiry__layout { align-items: start; display: grid; gap: 40px; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.6fr); }
.og-inquiry__intro h2 { color: var(--og-navy); font-size: 25px; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; }
.og-inquiry__intro p { color: var(--og-muted); font-size: 14px; margin: 0 0 16px; }
.og-checklist { list-style: none; margin: 0; padding: 0; }
.og-checklist li { align-items: start; color: var(--og-ink); display: flex; font-size: 13px; gap: 9px; margin: 9px 0; }
.og-checklist li::before { background: var(--og-blue); border-radius: 50%; color: #fff; content: "✓"; flex: 0 0 auto; font-size: 11px; height: 17px; line-height: 17px; text-align: center; width: 17px; }
.og-inquiry__form { background: #fff; border: 1px solid var(--og-line); padding: 22px 24px; }
.og-inquiry__form .openagi-quote-form { display: grid; gap: 0 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.og-inquiry__form .openagi-quote-form p { margin: 0 0 14px; }
.og-inquiry__form .openagi-quote-form p:nth-last-child(2), .og-inquiry__form .openagi-quote-form p:last-child { grid-column: 1 / -1; }
.og-inquiry__form .openagi-quote-form label { color: var(--og-navy); display: block; font-size: 12px; font-weight: 700; }
.og-inquiry__form input, .og-inquiry__form select, .og-inquiry__form textarea { border: 1px solid var(--og-line); border-radius: 0; display: block; margin-top: 5px; min-height: 39px; padding: 8px 10px; width: 100%; }
.og-inquiry__form textarea { min-height: 84px; resize: vertical; }
.og-inquiry__form input:focus, .og-inquiry__form select:focus, .og-inquiry__form textarea:focus { border-color: var(--og-blue); outline: 2px solid rgba(21, 94, 239, .12); }
.og-inquiry__form button, .openagi-quote-form button { background: var(--og-blue); border: 0; color: #fff; font-size: 14px; font-weight: 700; min-height: 43px; padding: 0 23px; }
.og-inquiry__form button:hover, .openagi-quote-form button:hover { background: var(--og-blue-dark); }
.og-origins__grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.og-origin { border: 1px solid var(--og-line); display: grid; gap: 15px; grid-template-columns: 42px 1fr; padding: 16px 18px; }
.og-origin__flag { font-size: 28px; line-height: 1; }
.og-origin h3 { color: var(--og-navy); font-size: 16px; margin: 0 0 4px; }
.og-origin p { color: var(--og-muted); font-size: 12px; line-height: 1.4; margin: 0 0 9px; }
.og-origin a { font-size: 12px; font-weight: 650; }

/* Content, quote and WooCommerce */
.og-prose { padding: 58px 0 72px; }
.og-prose h1, .og-prose h2, .og-prose h3 { color: var(--og-navy); letter-spacing: -.03em; line-height: 1.15; }
.og-prose h1 { font-size: clamp(31px, 4vw, 48px); margin: 0 0 14px; }
.og-prose h2 { font-size: 28px; margin-top: 36px; }
.og-prose p, .og-prose li { color: var(--og-muted); max-width: 760px; }
.og-prose .openagi-quote-form { border: 1px solid var(--og-line); margin-top: 28px; max-width: 760px; padding: 24px; }
.og-prose .openagi-quote-form p { margin: 0 0 16px; max-width: none; }
.og-prose .openagi-quote-form label { color: var(--og-navy); display: block; font-size: 13px; font-weight: 700; }
.og-prose .openagi-quote-form input, .og-prose .openagi-quote-form select, .og-prose .openagi-quote-form textarea { border: 1px solid var(--og-line); display: block; margin-top: 6px; min-height: 42px; padding: 8px 10px; width: 100%; }
.og-woo { padding: 42px 0 72px; }
.og-woo h1, .og-woo h2, .og-woo h3 { color: var(--og-navy); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--og-line); padding: 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--og-navy); font-size: 16px; }
.woocommerce ul.products li.product .price { color: var(--og-blue); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--og-blue); border-radius: 0; color: #fff; font-size: 13px; font-weight: 700; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--og-blue-dark); color: #fff; }
.woocommerce .quantity .qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border: 1px solid var(--og-line); border-radius: 0; min-height: 42px; padding: 8px 10px; }

/* Footer */
.og-footer { background: var(--og-band); border-top: 1px solid var(--og-line); }
.og-footer__grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1.05fr 1fr 1.35fr; padding: 34px 0 30px; }
.og-footer__column { border-right: 1px solid var(--og-line); padding-right: 22px; }
.og-footer__column:last-child { border-right: 0; }
.og-footer h3 { color: var(--og-navy); font-size: 13px; margin: 0 0 9px; }
.og-footer p, .og-footer li, .og-footer a { color: var(--og-muted); font-size: 12px; line-height: 1.5; }
.og-footer p { margin: 0 0 8px; }
.og-footer ul { list-style: none; margin: 0; padding: 0; }
.og-footer li { margin: 3px 0; }
.og-footer a:hover { color: var(--og-blue); }
.og-footer__contact { display: flex; gap: 8px; }
.og-footer__contact .og-icon { color: var(--og-blue); flex: 0 0 auto; height: 16px; width: 16px; }
.og-footer__cta { display: inline-block; font-size: 13px; font-weight: 700; margin: 5px 0 8px; }
.og-newsletter { display: flex; margin: 9px 0 5px; }
.og-newsletter input { border: 1px solid var(--og-line); min-height: 36px; padding: 6px 9px; width: 100%; }
.og-newsletter button { background: var(--og-blue); border: 0; color: #fff; font-size: 12px; font-weight: 700; padding: 0 13px; }
.og-footer__bottom { border-top: 1px solid var(--og-line); color: var(--og-muted); font-size: 11px; padding: 13px 0; }
.og-footer__bottom .og-container { display: flex; justify-content: space-between; }

@media (max-width: 1100px) {
    .og-brandbar__inner { gap: 18px; grid-template-columns: 1fr minmax(280px, 1.3fr) auto; }
    .og-actions { gap: 12px; }
    .og-action span { display: none; }
    .og-nav__items { overflow-x: auto; }
    .og-nav__link { padding-left: 8px; padding-right: 8px; }
    .og-category__layout { grid-template-columns: 1fr; }
    .og-category__aside { min-height: 130px; }
    .og-footer__grid { grid-template-columns: repeat(3, 1fr); }
    .og-footer__column:nth-child(3) { border-right: 0; }
}
@media (max-width: 760px) {
    .og-container { width: min(100% - 30px, var(--og-max)); }
    .og-utility__inner { align-items: start; flex-direction: column; gap: 2px; padding: 6px 0; }
    .og-utility__left, .og-utility__right { flex-wrap: wrap; gap: 8px 14px; }
    .og-brandbar__inner { display: flex; flex-wrap: wrap; gap: 13px; padding: 15px 0; }
    .og-brand { width: 100%; }
    .og-search { flex: 1 1 70%; order: 3; }
    .og-actions { margin-left: auto; }
    .og-nav__inner { align-items: stretch; flex-direction: column; padding: 3px 0; }
    .og-nav__toggle { padding: 9px 0; }
    .og-nav__items { display: none; flex-direction: column; overflow: visible; }
    .og-nav__items.is-open { display: flex; }
    .og-nav__link { justify-content: space-between; padding: 10px 0; width: 100%; }
    .og-nav__mega { border: 0; box-shadow: none; display: block; min-width: 0; padding: 0 0 8px 15px; position: static; }
    .og-nav__mega a { padding: 5px 0; }
    .og-hero__inner { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 35px 0 25px; }
    .og-hero h1 { font-size: clamp(34px, 11vw, 48px); }
    .og-hero p { font-size: 16px; }
    .og-hero__art { min-height: 130px; }
    .og-hero__art img { max-height: 175px; }
    .og-trust__grid { grid-template-columns: repeat(2, 1fr); }
    .og-trust__item { border-bottom: 1px solid var(--og-line); padding: 10px 0; }
    .og-trust__item:nth-child(2) { border-right: 0; padding-left: 12px; }
    .og-trust__item:nth-child(3), .og-trust__item:nth-child(4) { border-bottom: 0; }
    .og-trust__item:nth-child(4) { border-right: 0; padding-left: 12px; }
    .og-section { padding: 34px 0; }
    .og-category__grid { grid-template-columns: repeat(2, 1fr); }
    .og-category-card + .og-category-card { border-left: 1px solid var(--og-line); }
    .og-category-card:nth-child(n+3) { border-top: 0; }
    .og-inquiry__layout { grid-template-columns: 1fr; gap: 20px; }
    .og-inquiry__form .openagi-quote-form { display: block; }
    .og-origins__grid { grid-template-columns: 1fr; }
    .og-footer__grid { grid-template-columns: 1fr 1fr; }
    .og-footer__column:nth-child(2), .og-footer__column:nth-child(4) { border-right: 0; }
    .og-footer__column:nth-child(3) { border-right: 1px solid var(--og-line); }
    .og-footer__bottom .og-container { align-items: start; flex-direction: column; gap: 5px; }
}
