/* HÕRG CRAFTS — final responsive fit build
   Goal: use available screen width, no right-scroll, text wraps inside boxes. */
:root {
  --horg-page-gutter: clamp(12px, 2vw, 28px);
}

html:has(.horg-shop),
body:has(.horg-shop),
.wp-site-blocks:has(.horg-shop) {
  overflow-x: hidden !important;
}

/* Let the shortcode escape narrow theme containers without creating right scroll. */
body:has(.horg-shop) .entry-content,
body:has(.horg-shop) .wp-block-post-content,
body:has(.horg-shop) .page-content,
body:has(.horg-shop) .site-main,
body:has(.horg-shop) main,
body:has(.horg-shop) article,
body:has(.horg-shop) .hentry,
body:has(.horg-shop) .wp-site-blocks,
body:has(.horg-shop) .wp-block-group,
body:has(.horg-shop) .wp-block-post-content > * {
  max-width: none !important;
  overflow-x: visible !important;
}

.horg-shop,
.horg-shop * {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.horg-shop :where(h1, h2, h3, h4, p, a, span, strong, small, li, div, label, button) {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
}

.horg-shop {
  --horg-primary: #2f3526;
  --horg-accent: #d8b8ad;
  --horg-cream: #fbf3ee;
  --horg-sand: #efe2d8;
  --horg-white: #ffffff;
  --horg-ink: #2b2d25;
  --horg-muted: #756a62;
  --horg-border: rgba(47, 53, 38, 0.14);
  --horg-shadow: 0 18px 52px rgba(47, 53, 38, 0.08);
  --horg-soft-shadow: 0 10px 28px rgba(47, 53, 38, 0.07);

  width: min(1480px, calc(100vw - (var(--horg-page-gutter) * 2))) !important;
  max-width: min(1480px, calc(100vw - (var(--horg-page-gutter) * 2))) !important;
  margin-top: clamp(18px, 3vw, 34px) !important;
  margin-bottom: clamp(48px, 6vw, 84px) !important;
  margin-left: 50% !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
  padding: 0 !important;
  position: relative !important;
  clear: both;
  color: var(--horg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.entry-content > .horg-shop,
.wp-block-post-content > .horg-shop,
.page-content > .horg-shop,
.site-main .horg-shop {
  width: min(1480px, calc(100vw - (var(--horg-page-gutter) * 2))) !important;
  max-width: min(1480px, calc(100vw - (var(--horg-page-gutter) * 2))) !important;
}

.horg-shop a {
  color: inherit;
  text-decoration: none;
}

.horg-shop img {
  max-width: 100% !important;
  height: auto;
  display: block;
}

.horg-announcement {
  width: 100%;
  margin: 0 0 clamp(16px, 2vw, 24px);
  padding: 12px clamp(16px, 2.4vw, 28px);
  border-radius: 22px;
  background: rgba(216, 184, 173, 0.28);
  color: var(--horg-primary);
  text-align: center;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
  border: 1px solid rgba(216, 184, 173, 0.55);
}

.horg-eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d7569;
  font-size: clamp(0.72rem, 0.86vw, 0.84rem);
  line-height: 1.45;
  font-weight: 850;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.horg-hero,
.horg-section,
.horg-contact-cta,
.horg-trustbar {
  width: 100% !important;
  max-width: 100% !important;
}

.horg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: stretch;
}

.horg-hero__content,
.horg-hero__visual,
.horg-section,
.horg-contact-cta {
  border: 1px solid var(--horg-border);
  box-shadow: var(--horg-shadow);
  border-radius: clamp(22px, 3vw, 36px);
  overflow: hidden;
  max-width: 100% !important;
}

.horg-hero__content {
  min-height: clamp(430px, 38vw, 620px);
  padding: clamp(30px, 4.5vw, 72px);
  background:
    radial-gradient(circle at 14% 0%, rgba(216, 184, 173, 0.36), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.84), transparent 18%),
    linear-gradient(135deg, #fffaf7 0%, var(--horg-cream) 70%, #f2e2dc 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.horg-hero__logo {
  width: clamp(170px, 19vw, 310px);
  max-height: 190px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 clamp(16px, 2vw, 26px);
}

.horg-hero h1 {
  width: 100%;
  max-width: 760px;
  margin: 0 0 clamp(12px, 1.5vw, 20px);
  color: var(--horg-primary);
  font-size: clamp(2.35rem, 4.2vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 780;
  text-wrap: balance;
}

.horg-hero__lead {
  width: 100%;
  max-width: 780px;
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  color: var(--horg-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.16rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.horg-hero__actions,
.horg-contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
}

.horg-button,
.horg-shop .button,
.horg-shop button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100% !important;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
  line-height: 1.22;
  text-align: center;
  white-space: normal !important;
}

.horg-button:hover,
.horg-shop .button:hover {
  transform: translateY(-2px);
}

.horg-button--primary,
.horg-shop .button,
.horg-shop button.button {
  background: var(--horg-primary);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(47, 53, 38, 0.18);
}

.horg-button--ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--horg-primary) !important;
  border-color: var(--horg-border);
}

.horg-button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.horg-button--disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.horg-hero__visual {
  position: relative;
  min-height: clamp(360px, 38vw, 620px);
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.94) 0 12%, transparent 13%),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,0.54) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(216,184,173,0.66), rgba(251,243,238,0.95) 52%, rgba(47,53,38,0.12));
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.5vw, 20px);
  align-content: center;
  padding: clamp(22px, 3vw, 42px);
}

.horg-hero__visual::before {
  content: '';
  position: absolute;
  inset: clamp(14px, 1.8vw, 24px);
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: clamp(18px, 2.4vw, 30px);
  pointer-events: none;
}

.horg-visual-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 118px;
  padding: clamp(18px, 2.2vw, 30px);
  border-radius: clamp(18px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(47,53,38,0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.horg-visual-card span,
.horg-visual-card strong {
  display: block;
  width: 100%;
}

.horg-visual-card span {
  color: #9d7569;
  font-size: clamp(0.84rem, 0.96vw, 0.98rem);
  line-height: 1.5;
}

.horg-visual-card strong {
  color: var(--horg-primary);
  font-size: clamp(1.06rem, 1.28vw, 1.34rem);
  line-height: 1.35;
  text-wrap: balance;
}

.horg-trustbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: clamp(16px, 2vw, 24px) 0 0;
  background: transparent;
  color: #fff;
  overflow: visible;
  border: 0;
  box-shadow: none;
}

.horg-trustbar span {
  min-height: 54px;
  padding: 13px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.88rem, 0.98vw, 0.98rem);
  line-height: 1.35;
  background: var(--horg-primary);
  box-shadow: var(--horg-soft-shadow);
}

.horg-section {
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  padding: clamp(28px, 4vw, 58px);
  background: #fff;
}

.horg-section__heading {
  width: 100%;
  max-width: 960px;
  margin: 0 0 clamp(20px, 2.6vw, 32px);
}

.horg-section__heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.horg-section__heading--split {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  align-items: end;
  gap: clamp(18px, 2.2vw, 34px);
  max-width: none !important;
}

.horg-section__heading--split > div,
.horg-section__heading--split > p {
  min-width: 0;
}

.horg-section__heading--split > p {
  width: 100%;
  max-width: 720px !important;
  margin: 0;
  justify-self: end;
  text-align: left;
}

.horg-section__heading h2,
.horg-contact-cta h2,

.horg-story__media--image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.horg-story__media--image span {
  display: none !important;
}

.horg-story__content h2 {
  margin: 0 0 12px;
  color: var(--horg-primary);
  font-size: clamp(1.95rem, 2.8vw, 3.15rem);
  line-height: 1.09;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.horg-section__heading p:not(.horg-eyebrow),
.horg-contact-cta p,
.horg-story__content p {
  color: var(--horg-muted);
  line-height: 1.66;
  font-size: clamp(0.98rem, 1vw, 1.07rem);
}

.horg-category-grid,
.horg-product-grid,
.horg-steps,
.horg-feature-grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 100%;
}

.horg-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.horg-category-card {
  min-height: 168px;
  border: 1px solid var(--horg-border);
  background:
    radial-gradient(circle at 82% 18%, rgba(216,184,173,0.36), transparent 30%),
    linear-gradient(180deg, #fff, var(--horg-cream));
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.horg-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 53, 38, 0.24);
  box-shadow: 0 16px 38px rgba(47, 53, 38, 0.11);
}

.horg-category-card__number {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--horg-primary);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(47,53,38,0.11);
  font-size: 0.8rem;
  font-weight: 850;
}

.horg-category-card strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  line-height: 1.28;
  color: var(--horg-primary);
}

.horg-category-card small {
  color: var(--horg-muted);
  line-height: 1.45;
}

.horg-product-grid,
.horg-product-grid--cols-2,
.horg-product-grid--cols-3,
.horg-product-grid--cols-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 315px)) !important;
  justify-content: center !important;
  align-items: stretch;
}

.horg-product-card {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 315px !important;
  min-height: 100%;
  border: 1px solid var(--horg-border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.horg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(47, 53, 38, 0.11);
}

.horg-product-card__image {
  display: flex;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  aspect-ratio: auto !important;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 76% 22%, rgba(255,255,255,0.85), transparent 22%),
    linear-gradient(135deg, var(--horg-cream), rgba(216,184,173,0.42));
  overflow: hidden;
  color: #9d7569;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px;
}

.horg-product-card__image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 180px !important;
  object-fit: cover !important;
}

.horg-product-card__body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.horg-product-card__title {
  color: var(--horg-primary);
  font-weight: 850;
  font-size: 1.02rem;
  line-height: 1.28;
}

.horg-product-card__price {
  font-weight: 850;
  color: #9d7569;
  font-size: 1.02rem;
}

.horg-product-card__body p {
  margin: 0 0 6px;
  color: var(--horg-muted);
  line-height: 1.52;
  font-size: 0.94rem;
}

.horg-product-card .horg-button {
  margin-top: auto;
  width: 100%;
}

.horg-demo-note,
.horg-empty {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(216, 184, 173, 0.18);
  color: var(--horg-primary);
  border: 1px solid rgba(216, 184, 173, 0.42);
}

.horg-process {
  background:
    radial-gradient(circle at top left, rgba(216,184,173,0.18), transparent 36%),
    linear-gradient(135deg, var(--horg-primary), #4a503e);
  color: #fff;
}

.horg-process .horg-eyebrow,
.horg-process .horg-section__heading p:not(.horg-eyebrow) {
  color: rgba(255,255,255,0.78);
}

.horg-process .horg-section__heading h2,
.horg-steps h3 {
  color: #fff;
}

.horg-steps {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.horg-steps article,
.horg-feature-grid article {
  padding: 22px;
  border-radius: 22px;
}

.horg-steps article {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
}

.horg-steps span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--horg-primary);
  font-weight: 850;
  margin-bottom: 14px;
}

.horg-steps h3,
.horg-feature-grid h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
}

.horg-steps p {
  margin: 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.58;
}

.horg-story {
  display: grid;
  grid-template-columns: minmax(290px, 0.86fr) minmax(440px, 1.14fr);
  align-items: stretch;
  gap: 24px;
}

.horg-story__media {
  min-height: 300px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.78), transparent 24%),
    linear-gradient(135deg, var(--horg-sand), rgba(216,184,173,0.66));
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 28px;
  color: rgba(47,53,38,0.54);
  font-weight: 850;
  letter-spacing: 0.18em;
  text-align: center;
}

.horg-story__content {
  padding: clamp(8px, 2vw, 20px) 0;
  align-self: center;
}

.horg-story__content p {
  margin: 0 0 14px;
}

.horg-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.horg-feature-grid article {
  border: 1px solid var(--horg-border);
  background: linear-gradient(180deg, #fff, var(--horg-cream));
}

.horg-feature-grid h3 {
  color: var(--horg-primary);
}

.horg-feature-grid p {
  margin: 0;
  color: var(--horg-muted);
  line-height: 1.58;
}

.horg-contact-cta {
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.76), transparent 20%),
    linear-gradient(135deg, rgba(216,184,173,0.27), var(--horg-cream));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 22px;
  align-items: start;
}

.horg-contact-cta h2 {
  margin-top: 0;
  max-width: 860px !important;
}

.horg-contact-cta p:not(.horg-eyebrow) {
  max-width: 760px !important;
}

.horg-contact-cta__actions {
  width: 100%;
  justify-content: flex-start;
}

.horg-product-note,
.horg-checkout-extra {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--horg-border, rgba(47,53,38,0.14));
  border-radius: 18px;
  background: var(--horg-cream, #fbf3ee);
}

.horg-product-note label,
.horg-product-note textarea,
.horg-product-note small {
  display: block;
  width: 100%;
}

.horg-product-note textarea,
.horg-checkout-extra textarea {
  margin: 8px 0 6px;
  min-height: 92px;
  border-radius: 12px;
  border: 1px solid rgba(47,53,38,0.18);
  padding: 11px;
  background: #fff;
  width: 100%;
}

.horg-product-note small {
  color: var(--horg-muted, #756a62);
}

.horg-checkout-extra h3 {
  margin-top: 0;
}

/* Hard safety: no child may be wider than the shop. */
.horg-shop > *,
.horg-shop section,
.horg-shop div,
.horg-shop article,
.horg-shop a,
.horg-shop p,
.horg-shop h1,
.horg-shop h2,
.horg-shop h3 {
  max-width: 100% !important;
}

@media (max-width: 1180px) {
  .horg-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .horg-hero__content {
    min-height: auto;
    align-items: center;
    text-align: center;
  }

  .horg-hero__logo {
    object-position: center;
    margin-left: auto;
    margin-right: auto;
  }

  .horg-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .horg-hero__actions,
  .horg-contact-cta__actions {
    justify-content: center;
  }

  .horg-hero__visual {
    min-height: auto;
  }

  .horg-section__heading--split,
  .horg-story {
    grid-template-columns: 1fr;
    align-items: start;
    text-align: center;
  }

  .horg-section__heading--split > p,
  .horg-story__content p,
  .horg-story__content h2 {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .horg-shop {
    width: min(100%, calc(100vw - (var(--horg-page-gutter) * 2))) !important;
    max-width: min(100%, calc(100vw - (var(--horg-page-gutter) * 2))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  .horg-category-grid,
  .horg-steps,
  .horg-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .horg-contact-cta {
    text-align: center;
  }

  .horg-contact-cta p,
  .horg-contact-cta h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .horg-contact-cta__actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    --horg-page-gutter: 10px;
  }

  .horg-shop {
    margin-top: 14px !important;
    margin-bottom: 48px !important;
  }

  .horg-hero__content,
  .horg-hero__visual,
  .horg-section,
  .horg-contact-cta {
    border-radius: 22px;
    padding: 22px;
  }

  .horg-announcement {
    border-radius: 18px;
    padding: 12px 14px;
  }

  .horg-hero h1 {
    font-size: clamp(2rem, 11vw, 3.25rem);
    line-height: 1.04;
  }

  .horg-section__heading h2,
  .horg-contact-cta h2,
  .horg-story__content h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .horg-hero__logo {
    width: min(235px, 76vw);
  }

  .horg-visual-card {
    padding: 18px;
  }

  .horg-button,
  .horg-shop .button,
  .horg-shop button.button {
    width: 100%;
  }

  .horg-trustbar {
    grid-template-columns: 1fr;
  }

  .horg-product-grid,
  .horg-product-grid--cols-2,
  .horg-product-grid--cols-3,
  .horg-product-grid--cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important;
  }

  .horg-product-card {
    max-width: none !important;
  }

  .horg-product-card__image {
    height: 168px !important;
    min-height: 168px !important;
    max-height: 168px !important;
  }
}

@media (max-width: 420px) {
  :root {
    --horg-page-gutter: 8px;
  }

  .horg-hero__content,
  .horg-hero__visual,
  .horg-section,
  .horg-contact-cta {
    padding: 18px;
  }
}


/* HÕRG CRAFTS: Pood page shows categories instead of individual products */
.horg-products-section .horg-category-grid--shop {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.horg-products-section .horg-category-card {
  min-height: 190px;
}

@media (max-width: 1100px) {
  .horg-products-section .horg-category-grid--shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .horg-products-section .horg-category-grid--shop {
    grid-template-columns: 1fr;
  }

  .horg-products-section .horg-category-card {
    min-height: 150px;
  }
}
