/* Zeg's Blender Addon Store: light, calm marketplace look with Blender's orange and blue. */
:root {
  --orange: #e87d0d;
  --orange-dark: #c96a08;
  --orange-soft: #fff3e6;
  --blue: #265787;
  --blue-dark: #1b3f63;
  --blue-soft: #eaf1f8;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1d2330;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: #e4e7ec;
  --border-strong: #d3d8df;
  --green: #1f9d55;
  --red: #d64545;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-hover: 0 12px 28px rgba(16, 24, 40, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: 0.88em; background: var(--blue-soft); color: var(--blue-dark); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.accent-text { color: var(--orange); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }

/* ---------- buttons, chips, forms ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-small); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 14px rgba(232, 125, 13, 0.28); }
.button-primary:hover { background: var(--orange-dark); color: #fff; }
.button-primary:disabled { background: #f0b77c; box-shadow: none; cursor: not-allowed; }
.button-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.button-ghost:hover { border-color: var(--blue); color: var(--blue); }
.button-large { padding: 13px 22px; font-size: 16px; }
.button-block { width: 100%; }
.button.is-loading .button-label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: spin 0.7s linear infinite; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.link-button:hover { color: var(--orange-dark); }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-button { border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer; font: inherit; font-size: 14px; padding: 7px 14px; }
.chip-button:hover { border-color: var(--blue); color: var(--blue); }
.chip-button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-featured { background: var(--orange); color: #fff; }
.tag { display: inline-block; padding: 3px 9px; margin: 0 6px 6px 0; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-soft); }

input[type="email"], input[type="text"], input[type="password"], input[type="search"], input[type="number"], select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-small); border: 1px solid var(--border-strong);
  background: var(--surface); font: inherit; font-size: 15px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38, 87, 135, 0.15); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-soft); }
.form-error { color: var(--red); font-size: 14px; margin: 10px 0 0; }
.form-success { color: var(--green); font-size: 14px; margin: 10px 0 0; }
.stack-form { display: grid; gap: 10px; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 17px; }
.brand-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.header-search { flex: 1; max-width: 460px; position: relative; color: var(--muted); }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.header-search input { padding-left: 38px; background: var(--bg); border-color: var(--border); }
.header-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.header-nav a { color: var(--text-soft); }
.header-nav a:hover { color: var(--orange-dark); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(32px, 4vw, 48px); }
.lead { font-size: 18px; color: var(--text-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 18px; height: 18px; fill: var(--green); }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-2deg); }
.hero-collage img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(16, 24, 40, 0.14); border: 3px solid #fff; }
.hero-collage img:nth-child(even) { transform: translateY(28px); }
.hero-collage img:nth-child(n+5) { display: none; }

/* ---------- catalog ---------- */
.catalog { padding: 48px 0 24px; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-head h2 { font-size: 28px; margin-bottom: 4px; }
.catalog-head p { margin: 0; }
.catalog-controls { display: flex; gap: 10px; }
.catalog-controls input { width: 240px; }
.catalog-controls select { width: 190px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.product-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.product-card-image { position: relative; aspect-ratio: 2 / 1; background: var(--blue-soft); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.product-card:hover .product-card-image img { transform: scale(1.03); }
.image-placeholder { display: grid; place-items: center; height: 100%; color: var(--blue); font-weight: 700; padding: 16px; text-align: center; }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 16.5px; margin-bottom: 4px; }
.product-card-tagline { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 800; font-size: 17px; }
.empty-state { text-align: center; padding: 60px 20px; }

.why { padding: 40px 0 64px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--orange); }
.why-item p { margin: 0; font-size: 14.5px; }

/* ---------- product page ---------- */
.product-page { padding-top: 22px; padding-bottom: 64px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main side" "content side"; gap: 0 36px; align-items: start; }
.product-main { grid-area: main; min-width: 0; }
.product-side { grid-area: side; position: sticky; top: 86px; display: grid; gap: 16px; }
.product-content { grid-area: content; }
.product-title h1 { margin-bottom: 6px; }
.product-title .lead { margin-bottom: 20px; }
.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); aspect-ratio: 2 / 1; border: 1px solid var(--border); }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-hover); opacity: 0; transition: opacity 0.2s; }
.gallery-stage:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 auto; width: 112px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: 0.72; transition: opacity 0.15s, border-color 0.15s; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--orange); opacity: 1; }
.gallery-thumb img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }

.buy-card, .details-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.buy-card { border-top: 4px solid var(--orange); }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.price-big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.buy-card form { display: grid; gap: 10px; }
.buy-card label { margin-bottom: -2px; }
.checkout-buyer-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.checkout-buyer-row > div { display: grid; gap: 10px; min-width: 0; }
.checkout-buyer-row select { width: 100%; }
.checkout-currency-note { margin: 0; line-height: 1.45; }
.buy-card .legal-consent { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 0; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--text-soft); cursor: pointer; }
.legal-consent input { width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--orange); }
.checkout-payment-logos { display: flex; justify-content: center; padding-top: 4px; }
.checkout-payment-logos img { width: 150px; height: auto; }
.buy-benefits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-soft); }
.buy-benefits li { position: relative; padding-left: 24px; }
.buy-benefits li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat; }
.details-card h4 { font-size: 15px; margin-bottom: 10px; }
.details-card dl { margin: 0 0 12px; display: grid; gap: 0; }
.details-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.details-card dl div:last-child { border-bottom: 0; }
.details-card dt { color: var(--muted); }
.details-card dd { margin: 0; font-weight: 600; text-align: right; }

.product-content { padding-top: 30px; max-width: 820px; }
.description p { color: var(--text-soft); font-size: 16.5px; }
.description h3 { margin-top: 28px; font-size: 20px; }
.feature-list { padding: 0; list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.feature-list li { position: relative; padding-left: 26px; color: var(--text-soft); }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 3px; background: var(--orange); transform: rotate(45deg); }
.gif-list { display: grid; gap: 34px; margin: 30px 0; }
.gif-item { margin: 0; text-align: center; }
.gif-item h3 { font-size: 22px; margin-bottom: 4px; }
.gif-item p { max-width: 620px; margin: 0 auto 14px; }
.gif-item img { margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); max-height: 560px; width: auto; }
.install-box { background: var(--blue-soft); border-radius: var(--radius); padding: 20px 24px; margin: 26px 0; }
.install-box h3 { color: var(--blue-dark); margin-bottom: 8px; }
.install-box ol { margin: 0; padding-left: 20px; color: var(--text-soft); }
.faq { margin-top: 30px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-small); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 650; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-soft); }
.related { margin-top: 56px; }
.mobile-buy-bar { display: none; }

/* ---------- order + messages ---------- */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.order-state { text-align: center; }
.order-state h1 { font-size: 30px; }
.order-image { border-radius: var(--radius); margin: 22px auto 16px; border: 1px solid var(--border); }
.order-product { font-size: 20px; }
.order-state .install-box { text-align: left; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e7f6ee; display: grid; place-items: center; }
.success-mark svg { width: 34px; height: 34px; fill: var(--green); }
.spinner { width: 46px; height: 46px; margin: 10px auto 18px; border: 4px solid var(--blue-soft); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
.order-summary { margin: 24px 0 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.order-summary div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; font-weight: 600; }

.legal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 40px; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.legal p, .legal li { color: var(--text-soft); }
.legal section { margin-top: 10px; }
.legal section + section { margin-top: 36px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.lang-switch { font-weight: 600; }
.seller-table { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 18px; margin: 12px 0 18px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-small); font-size: 14.5px; }
.seller-table dt { color: var(--muted); }
.seller-table dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.missing-detail { color: var(--red); font-style: italic; }
.contact-cta { margin: 18px 0 8px; }

/* ---------- footer + consent ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.footer-grid a:not(.brand) { display: block; color: var(--text-soft); font-size: 14.5px; margin-bottom: 8px; }
.footer-grid a:not(.brand):hover { color: var(--orange-dark); }
.brand-footer { margin-bottom: 12px; }
.footer-link-button { display: block; font-size: 14.5px; color: var(--text-soft); margin-bottom: 8px; text-align: left; }
.footer-payments { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.footer-payments-text { display: grid; gap: 2px; font-size: 14.5px; }
.footer-payments img { width: 429px; max-width: 100%; height: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; margin-top: 28px; border-top: 1px solid var(--border); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(16, 24, 40, 0.18); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; color: var(--text-soft); flex: 1; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent .button { padding: 8px 14px; font-size: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "content"; }
  .product-side { position: static; margin-top: 20px; }
  .mobile-buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.08); }
  .mobile-buy-bar .price-big { font-size: 24px; }
  .product-page { padding-bottom: 96px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-search, .header-nav a:not(:nth-child(2)) { display: none; }
  .header-row { justify-content: space-between; }
  .catalog-controls { width: 100%; }
  .catalog-controls input, .catalog-controls select { width: 100%; }
  .product-grid, .product-grid-4 { grid-template-columns: 1fr; }
  .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .seller-table { grid-template-columns: 1fr; gap: 2px; }
  .seller-table dd { margin-bottom: 8px; }
  .order-card, .legal { padding: 24px 20px; }
  .consent { flex-direction: column; align-items: stretch; }
  .gallery-thumb { width: 84px; }
}
