/*
Theme Name: Lohdian Commerce
Theme URI: https://lohdian.com/
Author: Lohdian Core Holdings LLC
Author URI: https://lohdian.com/
Description: A modern WooCommerce-ready storefront theme for direct sales, affiliate products, marketplace links, supplier partnerships, and Lohdian business services.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: lohdian-commerce
License: GNU General Public License v2 or later
*/

:root {
  --lc-bg: #05070a;
  --lc-bg-soft: #0a1018;
  --lc-surface: rgba(255,255,255,.055);
  --lc-surface-strong: rgba(255,255,255,.085);
  --lc-border: rgba(255,255,255,.11);
  --lc-text: #eef3fb;
  --lc-muted: #b7c2d4;
  --lc-muted-2: #8c9ab0;
  --lc-blue: #3ea2ff;
  --lc-green: #35c26a;
  --lc-orange: #f36a3c;
  --lc-red: #ff4a4a;
  --lc-radius: 20px;
  --lc-radius-lg: 30px;
  --lc-shadow: 0 24px 70px rgba(0,0,0,.42);
  --lc-container: min(1280px, 94vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lc-text);
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(62,162,255,.22), transparent 58%),
    radial-gradient(850px 650px at 12% 25%, rgba(243,106,60,.16), transparent 60%),
    radial-gradient(900px 700px at 75% 65%, rgba(53,194,106,.10), transparent 62%),
    linear-gradient(180deg, var(--lc-bg), #070b12 52%, #030509);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: var(--lc-container); margin-inline: auto; }
.screen-reader-text { position:absolute!important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }

.announcement-bar {
  background: linear-gradient(90deg, rgba(243,106,60,.15), rgba(62,162,255,.15), rgba(53,194,106,.13));
  border-bottom: 1px solid var(--lc-border);
  color: var(--lc-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.announcement-inner { display:flex; justify-content:center; gap:14px; padding:8px 12px; text-align:center; }
.announcement-dot { color: var(--lc-orange); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5,8,13,.82);
  border-bottom: 1px solid var(--lc-border);
}
.header-inner { min-height: 86px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.site-branding { display:flex; align-items:center; gap:12px; min-width:260px; }
.custom-logo-link { display:flex; }
.custom-logo { width:68px; height:68px; object-fit:contain; border-radius:16px; padding:5px; background:rgba(255,255,255,.04); border:1px solid var(--lc-border); }
.brand-mark { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:20px; font-weight:900; background:linear-gradient(145deg, rgba(62,162,255,.22), rgba(53,194,106,.18), rgba(243,106,60,.20)); border:1px solid var(--lc-border); }
.brand-copy { display:flex; flex-direction:column; line-height:1.22; }
.brand-copy strong { font-size:14px; }
.brand-copy span { font-size:11.5px; color:var(--lc-muted-2); max-width:250px; }
.primary-nav ul { display:flex; align-items:center; justify-content:center; gap:5px; list-style:none; margin:0; padding:0; }
.primary-nav a { color:var(--lc-muted); font-size:13px; padding:9px 10px; border-radius:999px; display:block; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background:rgba(62,162,255,.12); color:#fff; border:1px solid rgba(62,162,255,.25); padding:8px 9px; }
.header-actions { display:flex; gap:9px; align-items:center; }
.icon-link, .menu-toggle { border:1px solid var(--lc-border); background:rgba(255,255,255,.045); color:var(--lc-text); border-radius:999px; min-height:42px; padding:9px 13px; display:inline-flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; }
.cart-count { min-width:20px; height:20px; border-radius:999px; display:grid; place-items:center; background:var(--lc-orange); color:#fff; font-size:11px; font-weight:800; }
.menu-toggle { display:none; }

.btn, .button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:11px 17px; border-radius:999px;
  border:1px solid var(--lc-border); background:rgba(255,255,255,.055); color:var(--lc-text);
  font-weight:750; cursor:pointer; transition:.18s ease; box-shadow:none;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform:translateY(-1px); background:rgba(255,255,255,.09); color:#fff; }
.btn-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background:linear-gradient(90deg, rgba(62,162,255,.30), rgba(53,194,106,.22));
  border-color:rgba(62,162,255,.35); color:#fff;
  box-shadow:0 0 42px rgba(62,162,255,.13);
}
.btn-secondary { background:rgba(243,106,60,.10); border-color:rgba(243,106,60,.28); }

.hero { padding:54px 0 30px; }
.hero-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:22px; align-items:stretch; }
.hero-panel, .glass-card, .content-card {
  border:1px solid var(--lc-border); border-radius:var(--lc-radius-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow:var(--lc-shadow); position:relative; overflow:hidden;
}
.hero-panel::before { content:""; position:absolute; inset:-100px -80px auto auto; width:420px; height:420px; background:radial-gradient(circle, rgba(62,162,255,.24), transparent 62%); filter:blur(8px); }
.hero-content { padding:clamp(25px,4vw,48px); position:relative; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; padding:8px 11px; border:1px solid var(--lc-border); border-radius:999px; background:rgba(0,0,0,.18); color:var(--lc-muted); font-size:12px; }
.eyebrow::before { content:""; width:9px; height:9px; border-radius:50%; background:linear-gradient(90deg,var(--lc-red),var(--lc-orange),var(--lc-blue),var(--lc-green)); }
.hero h1 { font-size:clamp(38px,5vw,68px); line-height:1.02; letter-spacing:-.035em; margin:18px 0 16px; max-width:14ch; }
.hero h1 span { background:linear-gradient(90deg,#fff,#bfe3ff,#bff1cf); -webkit-background-clip:text; color:transparent; }
.hero-lead { color:var(--lc-muted); font-size:clamp(16px,1.6vw,19px); max-width:62ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.trust-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.trust-pill { font-size:12px; color:var(--lc-muted); padding:8px 10px; border-radius:999px; background:rgba(0,0,0,.16); border:1px solid var(--lc-border); }
.hero-side { display:grid; gap:14px; }
.metric-card { padding:20px; border:1px solid var(--lc-border); border-radius:var(--lc-radius); background:rgba(255,255,255,.04); }
.metric-card small { color:var(--lc-muted-2); text-transform:uppercase; letter-spacing:.08em; }
.metric-card h3 { margin:7px 0 4px; font-size:20px; }
.metric-card p { margin:0; color:var(--lc-muted); font-size:13px; }

.section { padding:40px 0; }
.section-header { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin-bottom:18px; }
.section-header h2 { margin:0; font-size:clamp(26px,3vw,39px); letter-spacing:-.025em; }
.section-header p { margin:0; color:var(--lc-muted-2); max-width:68ch; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.lane-card { padding:22px; border:1px solid var(--lc-border); border-radius:var(--lc-radius); background:rgba(255,255,255,.035); min-height:210px; display:flex; flex-direction:column; }
.lane-icon { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(145deg,rgba(62,162,255,.18),rgba(243,106,60,.14)); border:1px solid var(--lc-border); font-size:21px; }
.lane-card h3 { margin:16px 0 7px; }
.lane-card p { margin:0; color:var(--lc-muted); font-size:14px; }
.lane-card .text-link { margin-top:auto; padding-top:15px; color:#cfe9ff; font-weight:750; font-size:13px; }

.category-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.category-card { min-height:185px; border-radius:var(--lc-radius); border:1px solid var(--lc-border); background:linear-gradient(160deg,rgba(62,162,255,.13),rgba(255,255,255,.03) 55%,rgba(53,194,106,.08)); padding:20px; display:flex; flex-direction:column; justify-content:flex-end; position:relative; overflow:hidden; }
.category-card::after { content:""; position:absolute; width:130px; height:130px; border-radius:50%; background:rgba(243,106,60,.10); top:-45px; right:-35px; }
.category-card h3 { margin:0; position:relative; }
.category-card span { color:var(--lc-muted-2); font-size:12px; position:relative; }

.notice-box { border:1px solid rgba(243,106,60,.25); border-radius:16px; background:rgba(243,106,60,.07); padding:14px 16px; color:var(--lc-muted); font-size:13px; }
.marketplace-card { padding:22px; border:1px solid var(--lc-border); border-radius:var(--lc-radius); background:rgba(255,255,255,.035); }
.marketplace-card h3 { margin-top:0; }
.marketplace-card p { color:var(--lc-muted); }
.marketplace-badge { display:inline-flex; border:1px solid var(--lc-border); border-radius:999px; padding:6px 9px; font-size:11px; color:var(--lc-muted-2); margin-bottom:10px; }

.site-main { min-height:60vh; }
.page-hero { padding:48px 0 24px; }
.page-hero .content-card { padding:clamp(24px,4vw,44px); }
.page-hero h1 { margin:0 0 8px; font-size:clamp(34px,4vw,55px); }
.page-hero p { color:var(--lc-muted); max-width:75ch; }
.entry-content, .entry-header, .comments-area { width:min(900px,92vw); margin-inline:auto; }
.entry-content { padding:24px 0 50px; }
.entry-content a { text-decoration:underline; text-underline-offset:3px; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { color:var(--lc-muted-2); font-size:12px; margin:22px 0; }
.woocommerce .woocommerce-breadcrumb a { color:var(--lc-muted); }
.woocommerce ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width:auto; float:none; margin:0; padding:0 0 18px; border:1px solid var(--lc-border); border-radius:var(--lc-radius); background:rgba(255,255,255,.04); overflow:hidden; }
.woocommerce ul.products li.product a img { margin:0; aspect-ratio:1/1; object-fit:cover; background:#fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding:14px 15px 4px; font-size:15px; color:var(--lc-text); }
.woocommerce ul.products li.product .price { padding:0 15px; color:#c8f0d4; font-weight:800; }
.woocommerce ul.products li.product .button { margin:10px 15px 0; width:calc(100% - 30px); }
.woocommerce span.onsale { min-width:auto; min-height:auto; line-height:1; padding:8px 10px; margin:10px!important; background:var(--lc-orange); }
.woocommerce div.product { padding:35px 0; }
.woocommerce div.product .product_title { font-size:clamp(30px,4vw,50px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color:#b9efcb; }
.woocommerce table.shop_table { border-color:var(--lc-border); border-radius:16px; overflow:hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color:var(--lc-border); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select, .woocommerce .select2-container--default .select2-selection--single {
  background:#0b111a; color:var(--lc-text); border:1px solid var(--lc-border); border-radius:10px; min-height:44px; padding:10px;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error { background:rgba(255,255,255,.06); color:var(--lc-text); border-radius:12px; border-top-color:var(--lc-blue); }
.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-billing-fields, .woocommerce-additional-fields { background:rgba(255,255,255,.035); padding:18px; border:1px solid var(--lc-border); border-radius:var(--lc-radius); }

.affiliate-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.affiliate-card { border:1px solid var(--lc-border); border-radius:var(--lc-radius); overflow:hidden; background:rgba(255,255,255,.035); display:flex; flex-direction:column; }
.affiliate-image { aspect-ratio:1/1; background:rgba(255,255,255,.04); display:grid; place-items:center; overflow:hidden; }
.affiliate-image img { width:100%; height:100%; object-fit:cover; }
.affiliate-body { padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.affiliate-body h3 { margin:0; font-size:16px; }
.affiliate-body p { color:var(--lc-muted); font-size:13px; }
.affiliate-body .btn { margin-top:auto; }
.ad-label { font-size:10px; color:var(--lc-muted-2); letter-spacing:.08em; text-transform:uppercase; }

.cta-band { padding:28px; border-radius:var(--lc-radius-lg); border:1px solid var(--lc-border); background:linear-gradient(120deg,rgba(62,162,255,.18),rgba(53,194,106,.11),rgba(243,106,60,.12)); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.cta-band h2 { margin:0 0 4px; }
.cta-band p { margin:0; color:var(--lc-muted); }

.site-footer { border-top:1px solid var(--lc-border); margin-top:45px; background:rgba(1,3,6,.65); }
.footer-main { padding:40px 0 24px; display:grid; grid-template-columns:1.25fr repeat(3,1fr); gap:28px; }
.footer-brand p { color:var(--lc-muted); max-width:45ch; }
.footer-col h3 { font-size:14px; margin:0 0 12px; }
.footer-col ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.footer-col a, .footer-col li { color:var(--lc-muted); font-size:13px; }
.footer-disclosure { border-top:1px solid var(--lc-border); border-bottom:1px solid var(--lc-border); padding:14px 0; color:var(--lc-muted-2); font-size:12px; }
.footer-bottom { padding:18px 0 28px; display:flex; justify-content:space-between; gap:15px; color:var(--lc-muted-2); font-size:12px; flex-wrap:wrap; }

@media (max-width:1100px) {
  .primary-nav { position:fixed; inset:calc(86px + 32px) 3vw auto 3vw; background:#080d15; border:1px solid var(--lc-border); border-radius:18px; padding:14px; box-shadow:var(--lc-shadow); display:none; }
  body.admin-bar .primary-nav { inset:calc(86px + 64px) 3vw auto 3vw; }
  .primary-nav.open { display:block; }
  .primary-nav ul { flex-direction:column; align-items:stretch; }
  .primary-nav a { padding:11px 12px; }
  .menu-toggle { display:inline-flex; }
  .site-branding { min-width:0; }
  .grid-4, .category-grid, .woocommerce ul.products { grid-template-columns:repeat(2,1fr); }
  .footer-main { grid-template-columns:1fr 1fr; }
}
@media (max-width:800px) {
  .hero-grid, .grid-2, .grid-3 { grid-template-columns:1fr; }
  .header-actions .account-link { display:none; }
  .brand-copy span { display:none; }
  .hero h1 { max-width:none; }
  .section-header { align-items:flex-start; flex-direction:column; }
  .affiliate-grid { grid-template-columns:1fr 1fr; }
  .cta-band { align-items:flex-start; flex-direction:column; }
}
@media (max-width:560px) {
  .announcement-inner { font-size:10px; gap:7px; }
  .header-inner { min-height:74px; }
  .custom-logo { width:54px; height:54px; }
  .brand-copy strong { font-size:12px; }
  .header-actions { gap:5px; }
  .icon-link, .menu-toggle { padding:8px 10px; min-height:38px; }
  .grid-4, .category-grid, .woocommerce ul.products, .affiliate-grid { grid-template-columns:1fr; }
  .hero { padding-top:28px; }
  .hero-content { padding:24px; }
  .footer-main { grid-template-columns:1fr; }
}


/* Packaged Lohdian branding and current-site banner assets */
.packaged-logo-link { flex:0 0 auto; }
.packaged-logo { object-fit:contain; }
.brand-banner-section { padding:20px 0 0; }
.brand-banner {
  position:relative;
  overflow:hidden;
  border:1px solid var(--lc-border);
  border-radius:var(--lc-radius-lg);
  min-height:250px;
  background:rgba(255,255,255,.035);
  box-shadow:var(--lc-shadow);
}
.brand-banner-track { position:relative; min-height:250px; }
.brand-banner-slide {
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .55s ease, visibility .55s ease;
}
.brand-banner-slide.is-active { opacity:1; visibility:visible; z-index:1; }
.brand-banner-slide img { width:100%; height:100%; min-height:250px; object-fit:cover; display:block; }
.brand-banner-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(3,5,9,.94) 0%, rgba(3,5,9,.72) 48%, rgba(3,5,9,.25) 100%),
             linear-gradient(0deg, rgba(3,5,9,.55), transparent 60%);
}
.brand-banner-content {
  position:absolute;
  z-index:2;
  inset:0;
  padding:clamp(24px,4vw,46px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}
.brand-banner-content > div { max-width:760px; }
.brand-banner-eyebrow {
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.17);
  background:rgba(0,0,0,.28);
  color:var(--lc-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.brand-banner h2 { margin:12px 0 8px; max-width:24ch; font-size:clamp(25px,3.2vw,42px); line-height:1.08; }
.brand-banner p { margin:0; max-width:68ch; color:var(--lc-muted); font-size:15px; }
.brand-banner-controls {
  position:absolute;
  z-index:4;
  left:22px;
  right:22px;
  bottom:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}
.brand-banner-dots, .brand-banner-arrows { display:flex; gap:8px; pointer-events:auto; }
.brand-banner-dot {
  width:10px;
  height:10px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.13);
  cursor:pointer;
}
.brand-banner-dot.is-active { background:linear-gradient(90deg,var(--lc-orange),var(--lc-blue),var(--lc-green)); }
.brand-banner-arrow {
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.34);
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
.brand-banner-arrow:hover { background:rgba(0,0,0,.58); }
@media (max-width:760px) {
  .brand-banner, .brand-banner-track, .brand-banner-slide img { min-height:390px; }
  .brand-banner-content { align-items:flex-start; justify-content:center; flex-direction:column; padding:28px 22px 72px; }
  .brand-banner h2 { max-width:none; }
}
