/*
Theme Name: EPACN Config Market
Theme URI: https://wps1.epacn.net/
Author: EPACN Demo
Description: Desktop-first B2B custom shading marketplace and configuration demo.
Version: 1.0.0
Text Domain: epacn-config-market
*/

:root {
  --navy: #17243a;
  --navy-soft: #263650;
  --orange: #f36b3f;
  --orange-dark: #d9512b;
  --lime: #dbff52;
  --lavender: #c9b9ff;
  --sage: #bcd7c6;
  --cream: #f7f0e7;
  --paper: #fffdf9;
  --ink: #182035;
  --muted: #687084;
  --line: #dedbd4;
  --white: #fff;
  --shadow: 0 22px 60px rgba(23, 36, 58, .12);
  --radius: 26px;
  --wrap: min(1440px, calc(100% - 54px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--lime); }
.button,
.header-action,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 850;
  transition: .18s ease;
}
.button:hover,
.header-action:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-2px);
  background: var(--orange-dark);
  color: var(--white);
}
.button.dark { background: var(--navy); }
.button.dark:hover { background: var(--navy-soft); }
.button.light { background: var(--white); color: var(--navy); }
.button.light:hover { background: var(--lime); color: var(--navy); }
.button.outline { border: 1px solid var(--navy); background: transparent; color: var(--navy); }
.button.outline:hover { background: var(--navy); color: white; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 36, 58, .1);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(18px);
}
.header-top {
  padding: 7px 0;
  background: var(--navy);
  color: #d8dfec;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .035em;
}
.header-top .container { display: flex; justify-content: space-between; }
.header-main { display: flex; min-height: 76px; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 950; letter-spacing: -.03em; }
.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--orange);
  place-items: center;
}
.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 20px;
  height: 6px;
  border-radius: 5px;
  background: var(--white);
  content: "";
}
.brand-mark::before { transform: translateY(-6px); }
.brand-mark::after { transform: translateY(6px); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 7px; letter-spacing: .17em; }
.site-nav { display: flex; margin-left: auto; align-items: center; gap: 28px; }
.site-nav ul { display: flex; margin: 0; padding: 0; align-items: center; list-style: none; gap: 26px; }
.site-nav a { font-size: 13px; font-weight: 800; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--orange-dark); }
.cart-link { position: relative; display: flex; align-items: center; gap: 7px; }
.cart-count { display: grid; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); place-items: center; color: var(--navy); font-size: 9px; }

.market-hero {
  padding: 34px 0;
  background: var(--cream);
}
.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 34px;
  background: #ece2d3;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 240, 231, .98) 0%, rgba(247, 240, 231, .94) 32%, rgba(247, 240, 231, .25) 57%, rgba(247, 240, 231, 0) 78%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 680px;
  padding: 64px;
  align-items: center;
}
.hero-copy { max-width: 630px; }
.hero-copy h1 {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 6.3vw, 96px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero-copy h1 em { color: var(--orange); font-style: normal; }
.hero-copy .lead { max-width: 560px; margin: 0 0 32px; color: #4f5868; font-size: 19px; }
.hero-actions { display: flex; gap: 10px; }
.hero-badge {
  display: inline-flex;
  margin-bottom: 25px;
  padding: 8px 12px;
  border-radius: 999px;
  align-items: center;
  background: var(--lime);
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-facts {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 17px;
  background: rgba(23,36,58,.92);
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(12px);
}
.hero-fact { padding: 15px 20px; border-right: 1px solid rgba(255,255,255,.14); color: white; }
.hero-fact:last-child { border-right: 0; }
.hero-fact strong, .hero-fact span { display: block; }
.hero-fact strong { font-size: 12px; }
.hero-fact span { color: #9eabc0; font-size: 9px; }

.section { padding: 96px 0; }
.section.cream { background: var(--cream); }
.section.navy { background: var(--navy); color: white; }
.section-heading {
  display: flex;
  margin-bottom: 40px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.section-heading > div { max-width: 790px; }
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.7vw, 66px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}
.section-heading p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.section.navy .section-heading p:last-child { color: #9ba8bb; }

.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.family-card {
  position: relative;
  min-height: 445px;
  padding: 25px;
  overflow: hidden;
  border-radius: 24px;
  transition: .2s ease;
}
.family-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.family-card.orange { background: #ff9b74; }
.family-card.lavender { background: var(--lavender); }
.family-card.sage { background: var(--sage); }
.family-card.lime { background: var(--lime); }
.family-card .number { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.family-card h3 {
  position: relative;
  z-index: 2;
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}
.family-card p { position: relative; z-index: 2; margin: 0; color: rgba(23,36,58,.72); font-size: 12px; }
.family-card .card-link { position: absolute; z-index: 3; right: 24px; bottom: 21px; left: 24px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 900; }
.family-card .card-link::after { content: "↗"; }
.shade-art {
  position: absolute;
  right: 26px;
  bottom: 66px;
  left: 26px;
  height: 212px;
  border: 11px solid rgba(255,255,255,.78);
  border-bottom-width: 15px;
  background: rgba(255,255,255,.35);
  box-shadow: 0 18px 28px rgba(23,36,58,.13);
}
.shade-art::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 72%;
  border-bottom: 5px solid rgba(23,36,58,.45);
  background: repeating-linear-gradient(90deg, rgba(23,36,58,.08) 0 1px, transparent 1px 5px), rgba(250,246,237,.9);
  content: "";
}
.shade-art.blackout::before { height: 92%; background: #323c50; }
.shade-art.dual::before { height: 82%; background: repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 12px, rgba(23,36,58,.18) 12px 24px); }
.shade-art.zip { border-color: #313b4c; }
.shade-art.zip::before { right: 4px; left: 4px; height: 88%; }

.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.path-card { min-height: 310px; padding: 31px; border: 1px solid var(--line); border-radius: 23px; background: white; }
.path-card.featured { border-color: var(--orange); background: var(--orange); color: white; }
.path-card .path-icon { display: grid; width: 47px; height: 47px; border-radius: 12px; background: var(--cream); place-items: center; color: var(--navy); font-size: 12px; font-weight: 950; }
.path-card h3 { margin: 65px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; line-height: 1.05; }
.path-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.path-card.featured p { color: #ffe4da; }
.path-card a { font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

.config-showcase {
  display: grid;
  min-height: 600px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper);
  grid-template-columns: .82fr 1.18fr;
  box-shadow: var(--shadow);
}
.showcase-copy { display: flex; padding: 55px; flex-direction: column; justify-content: center; background: var(--lavender); }
.showcase-copy h2 { margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: 54px; font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.showcase-copy p { margin: 0 0 26px; color: #4f5262; }
.showcase-ui { padding: 34px; background: #ece9e4; }
.ui-window { height: 100%; overflow: hidden; border: 1px solid #cfd1cf; border-radius: 18px; background: white; }
.ui-bar { display: flex; min-height: 52px; padding: 0 17px; border-bottom: 1px solid var(--line); align-items: center; gap: 6px; }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: #c7c8c7; }
.ui-body { display: grid; height: calc(100% - 52px); grid-template-columns: 1fr 210px; }
.ui-options { padding: 25px; }
.ui-options h3 { margin: 0 0 16px; font-size: 18px; }
.ui-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ui-option { min-height: 85px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.ui-option.active { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.ui-option span, .ui-option strong { display: block; }
.ui-option span { color: var(--muted); font-size: 8px; }
.ui-option strong { margin-top: 24px; font-size: 10px; }
.ui-summary { padding: 22px; background: var(--navy); color: white; }
.ui-summary .mini-preview { height: 145px; margin-bottom: 18px; border: 9px solid #f2ede4; background: linear-gradient(#ebe4d6 76%, #d0d8d5 76%); }
.ui-summary p { margin: 0 0 5px; color: #9aa8bb; font-size: 8px; }
.ui-summary code { color: var(--lime); font-size: 9px; }
.ui-line { display: flex; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); justify-content: space-between; font-size: 8px; }
.ui-price { margin-top: 20px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.08); }
.ui-price strong { display: block; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }

.order-steps { display: grid; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; grid-template-columns: repeat(4, 1fr); }
.order-step { min-height: 280px; padding: 28px; border-right: 1px solid rgba(255,255,255,.15); }
.order-step:last-child { border-right: 0; }
.order-step > span { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.order-step h3 { margin: 88px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.order-step p { margin: 0; color: #9ba8bb; font-size: 12px; }

.sample-banner {
  display: grid;
  padding: 54px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--lime);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 35px;
}
.sample-banner h2 { max-width: 850px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 52px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.sample-banner p { margin: 12px 0 0; color: #4d5742; }

.page-hero { padding: 86px 0 64px; background: var(--cream); }
.page-hero-inner { max-width: 920px; }
.page-hero h1 { margin: 0 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: 66px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.page-hero p:last-child { margin: 0; color: var(--muted); font-size: 18px; }
.page-content { padding: 70px 0 105px; }
.content-narrow { max-width: 980px; margin-inline: auto; }
.content-wide { max-width: 1440px; margin-inline: auto; }
.content-narrow h2 { margin: 48px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 500; }
.content-narrow p, .content-narrow li { color: var(--muted); }

.shop-content { background: #f2eee7; }
.shop-intro {
  display: grid;
  margin-bottom: 28px;
  padding: 30px 34px;
  border-radius: 22px;
  background: var(--navy);
  color: white;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.shop-intro h2 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; line-height: 1.08; }
.shop-chips { display: flex; margin-bottom: 31px; flex-wrap: wrap; gap: 8px; }
.shop-chips a { display: inline-flex; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; align-items: center; background: white; color: var(--muted); font-size: 11px; font-weight: 800; }
.shop-chips a:hover, .shop-chips a.active { border-color: var(--navy); background: var(--navy); color: white; }
.woocommerce ul.products { display: grid; margin: 0 !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  display: flex;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  flex-direction: column;
  transition: .2s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; flex: 1; }
.catalog-art { position: relative; height: 280px; margin-bottom: 20px; overflow: hidden; background: var(--lavender); }
.catalog-art.solar { background: #ff9b74; }
.catalog-art.blackout { background: var(--lavender); }
.catalog-art.dual { background: var(--sage); }
.catalog-art.exterior { background: var(--lime); }
.catalog-art.skylight { background: #f3ca7b; }
.catalog-art.controls { background: #9fcad8; }
.catalog-art .shade-art { right: 50px; bottom: 35px; left: 50px; height: 184px; }
.catalog-art.controls::before { position: absolute; top: 68px; left: 50%; width: 82px; height: 130px; transform: translateX(-50%); border-radius: 18px; background: var(--navy); box-shadow: 23px 18px 0 rgba(255,255,255,.65); content: ""; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 22px !important; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 25px !important; font-weight: 500; line-height: 1.08; }
.woocommerce ul.products li.product .price { padding: 0 22px; color: var(--orange-dark) !important; font-size: 13px !important; font-weight: 850; }
.product-loop-sku { display: flex; margin: 14px 22px 0; padding-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.product-loop-sku small { color: var(--muted); font-family: Inter, sans-serif; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce ul.products li.product .button { min-height: 42px; margin: 15px 22px 0 !important; padding-inline: 15px; align-self: flex-start; background: var(--navy); font-size: 11px; }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.product-detail-art { min-height: 570px; border-radius: 28px; }
.product-detail-art .shade-art { right: 90px; bottom: 80px; left: 90px; height: 330px; }
.product-detail-copy { display: flex; flex-direction: column; justify-content: center; }
.product-detail-copy h1 { margin: 0 0 17px; font-family: Georgia, "Times New Roman", serif; font-size: 60px; font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.product-detail-price { margin-bottom: 18px; color: var(--orange-dark); font-size: 17px; font-weight: 850; }
.product-detail-copy .description { color: var(--muted); font-size: 17px; }
.product-spec-grid { display: grid; margin: 23px 0; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.product-spec { padding: 14px; border-radius: 10px; background: var(--cream); }
.product-spec span, .product-spec strong { display: block; }
.product-spec span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-spec strong { margin-top: 3px; font-size: 11px; }
.product-detail-actions { display: flex; gap: 9px; }

.woocommerce-cart .page-content,
.woocommerce-checkout .page-content { background: #f3efe8; }
.woocommerce table.shop_table { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; border-collapse: separate; }
.woocommerce table.shop_table th { padding: 15px 17px; background: var(--cream); color: var(--navy); font-size: 11px; }
.woocommerce table.shop_table td { padding: 17px; border-color: var(--line); }
.woocommerce td.product-name a { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.woocommerce dl.variation { display: grid; margin: 10px 0 0; grid-template-columns: auto 1fr; gap: 2px 8px; color: var(--muted); font-size: 10px; }
.woocommerce dl.variation dt, .woocommerce dl.variation dd { margin: 0; padding: 0; }
.woocommerce dl.variation dd p { margin: 0; }
.woocommerce .cart-collaterals .cart_totals { padding: 22px; border-radius: 18px; background: white; }
.woocommerce .cart-collaterals .cart_totals h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.woocommerce form.checkout { display: grid; grid-template-columns: 1fr 470px; gap: 28px; }
.woocommerce form.checkout #customer_details { width: auto; float: none; }
.woocommerce form.checkout #order_review_heading,
.woocommerce form.checkout #order_review { width: auto; float: none; }
.woocommerce form.checkout #order_review { grid-column: 2; grid-row: 1 / span 2; padding: 24px; border-radius: 18px; background: white; }
.woocommerce form.checkout #order_review_heading { display: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { min-height: 47px; padding: 10px 12px; border: 1px solid #cfd3d2; border-radius: 8px; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--orange) !important; border-radius: 10px; background: white; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--orange) !important; }
.demo-order-notice { margin-bottom: 24px; padding: 16px 18px; border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; background: #fff4ec; color: #735040; font-size: 12px; }

.site-footer { padding: 68px 0 23px; background: var(--navy); color: white; }
.footer-grid { display: grid; padding-bottom: 48px; grid-template-columns: 1.35fr .7fr .7fr .7fr; gap: 60px; }
.footer-brand p { max-width: 410px; color: #9da9ba; }
.footer-title { margin: 0 0 14px; color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; color: #b4becc; font-size: 12px; }
.footer-bottom { display: flex; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); justify-content: space-between; color: #77869c; font-size: 9px; }

@media (max-width: 1220px) {
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav ul { gap: 14px; }
}

@media (max-width: 900px) {
  :root { --wrap: min(100% - 30px, 1440px); }
  .header-top { display: none; }
  .site-nav ul { display: none; }
  .market-hero { padding-top: 15px; }
  .hero-shell, .hero-content { min-height: 700px; }
  .hero-content { padding: 35px; align-items: flex-start; }
  .hero-overlay { background: linear-gradient(180deg, rgba(247,240,231,.98), rgba(247,240,231,.78) 58%, rgba(247,240,231,.08)); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .family-grid, .path-grid, .config-showcase, .product-detail-grid, .woocommerce form.checkout { grid-template-columns: 1fr; }
  .order-steps { grid-template-columns: 1fr 1fr; }
  .sample-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce form.checkout #order_review { grid-column: auto; grid-row: auto; }
}
