#eh-shop {
  --ink: #333333;
  --muted: #575757;
  --ice: #f3f4f6;
  --line: #b0c4de;
  --paper: #ffffff;
  --primary: #005a8b;
  --primary-hover: #003958;
  --accent: #b0c4de;
  --site-background: #f3f4f6;
  --shadow: 0 18px 48px rgba(0, 90, 139, 0.12);
  --radius: 18px;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  min-height: 70vh;
  background: var(--site-background);
}

#eh-shop, #eh-shop * { box-sizing: border-box; }
#eh-shop h1, #eh-shop h2, #eh-shop h3, #eh-shop h4, #eh-shop h5, #eh-shop h6 { font-family: "Roboto", sans-serif; color: var(--primary); }
#eh-shop button, #eh-shop input, #eh-shop select { font: inherit; }
#eh-shop a { color: inherit; }
#eh-shop a:focus-visible,
#eh-shop button:focus-visible,
#eh-shop input:focus-visible,
#eh-shop select:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
#eh-shop .shop-layout { width: min(1540px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
#eh-shop .catalogue-column { min-width: 0; padding: clamp(1.25rem, 3.4vw, 3.5rem); }
#eh-shop .shop-hero { display: block; margin: 0 0 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 0; background: var(--primary); color: var(--site-background); overflow: hidden; position: relative; }
#eh-shop .shop-hero::after { content: ""; width: 240px; height: 240px; border: 38px solid rgba(176,196,222,.22); border-radius: 50%; position: absolute; right: -55px; top: -90px; }
#eh-shop .shop-hero h1 { position: relative; z-index: 1; max-width: 840px; margin: 0; color: var(--site-background); font-size: clamp(1.848rem, 4vw, 2.64rem); font-weight: 800; line-height: 1.2; letter-spacing: 0; }
#eh-shop .eyebrow { display: block; color: var(--primary); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

#eh-shop .catalogue-tools { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .4fr) auto; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
#eh-shop .catalogue-tools label, #eh-shop .option-field { display: grid; gap: .4rem; font-size: .82rem; font-weight: 750; }
#eh-shop .catalogue-tools input, #eh-shop .catalogue-tools select, #eh-shop .option-field input, #eh-shop .option-field select { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--paper); }
#eh-shop .result-count { margin: 0 0 .8rem; color: var(--muted); font-size: .9rem; }
#eh-shop .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
#eh-shop .product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 18px rgba(0,90,139,.05); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
#eh-shop .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
#eh-shop .product-media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 1rem; background: linear-gradient(145deg, var(--site-background), #fff); overflow: hidden; }
#eh-shop .product-image { display: block; width: 100%; height: 100%; object-fit: contain; }
#eh-shop .placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--site-background)); color: var(--primary); font-size: 2.5rem; font-weight: 800; }
#eh-shop .ribbon { position: absolute; left: .75rem; top: .75rem; max-width: calc(100% - 1.5rem); padding: .4rem .65rem; border-radius: 999px; color: var(--ink); background: var(--accent); font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
#eh-shop .ribbon.inline { position: static; display: inline-block; margin-bottom: .65rem; }
#eh-shop .product-card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.05rem 1.15rem; }
#eh-shop .product-brand { margin: 0 0 .32rem; color: var(--primary); font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
#eh-shop .product-card h2 { margin: 0; font-size: 1.06rem; line-height: 1.3; }
#eh-shop .product-card h2 a { text-decoration: none; }
#eh-shop .price { margin: .7rem 0; font-size: 1.13rem; font-weight: 850; }
#eh-shop .card-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; }
#eh-shop .text-link { color: var(--primary); font-size: .88rem; font-weight: 600; text-underline-offset: .18em; }
#eh-shop .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 0; padding: .5rem 1rem; text-decoration: none; cursor: pointer; font-weight: 300; line-height: 1.5; text-transform: uppercase; }
#eh-shop .button.primary { color: var(--site-background); background: var(--primary); }
#eh-shop .button.primary:hover { color: var(--site-background); background: var(--primary-hover); }
#eh-shop .button.secondary { border-color: transparent; color: var(--ink); background: var(--accent); font-size: .82rem; }
#eh-shop .button.secondary:hover { color: var(--site-background); background: var(--muted); }
#eh-shop .button:disabled { cursor: not-allowed; opacity: .5; }
#eh-shop .button.wide { width: 100%; }
#eh-shop .muted { color: var(--muted); }
#eh-shop .no-results { padding: 3rem; border: 1px dashed #afc0c4; border-radius: var(--radius); text-align: center; }

#eh-shop .basket { min-width: 0; min-height: 100%; padding: 2rem 1.4rem; border-left: 1px solid var(--line); background: var(--paper); }
#eh-shop .basket-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#eh-shop .basket-heading h2 { margin: .2rem 0 0; font-size: 1.8rem; }
#eh-shop .icon-button { border: 0; background: transparent; font-size: 1.75rem; cursor: pointer; }
#eh-shop .basket-close { display: none; }
#eh-shop .basket-lines { display: grid; gap: .85rem; margin: 1.5rem 0; }
#eh-shop .basket-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
#eh-shop .basket-line img, #eh-shop .basket-line .mini-placeholder { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--ice); }
#eh-shop .basket-line strong { display: block; font-size: .86rem; line-height: 1.3; }
#eh-shop .basket-line small { display: block; margin-top: .2rem; color: var(--muted); line-height: 1.3; }
#eh-shop .basket-line-price { font-size: .84rem; font-weight: 850; white-space: nowrap; }
#eh-shop .quantity-control { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; }
#eh-shop .quantity-control button { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
#eh-shop .remove-line { padding: 0; border: 0; color: #9a3412; background: none; font-size: .75rem; cursor: pointer; text-decoration: underline; }
#eh-shop .basket-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 2px solid var(--ink); font-size: 1.1rem; }
#eh-shop .basket-total strong { font-size: 1.35rem; }
#eh-shop .basket-note { color: var(--muted); text-align: center; font-size: .75rem; }

#eh-shop .breadcrumbs { display: flex; gap: .55rem; align-items: center; margin-bottom: 1.25rem; color: var(--muted); font-size: .86rem; }
#eh-shop .breadcrumbs a { color: var(--primary); font-weight: 600; }
#eh-shop .product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(1.5rem, 4vw, 4.5rem); padding: clamp(1.2rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
#eh-shop .main-image-frame { aspect-ratio: 1 / 1; padding: 1rem; border-radius: 18px; background: #f1f5f5; overflow: hidden; }
#eh-shop .detail-main-image { width: 100%; height: 100%; object-fit: contain; }
#eh-shop .gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin-top: .75rem; }
#eh-shop .gallery-thumb { aspect-ratio: 1; padding: .2rem; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; overflow: hidden; }
#eh-shop .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
#eh-shop .detail-copy h1 { margin: .25rem 0 .6rem; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.045em; }
#eh-shop .detail-price { font-size: 1.6rem; }
#eh-shop .stock { font-size: .84rem; font-weight: 800; }
#eh-shop .stock.available { color: #0b7a47; }
#eh-shop .stock.unavailable { color: #a33b16; }
#eh-shop .description { color: var(--ink); line-height: 1.8; }
#eh-shop .rich-text > :first-child { margin-top: 0; }
#eh-shop .rich-text > :last-child { margin-bottom: 0; }
#eh-shop .rich-text p { margin: 0 0 .85rem; }
#eh-shop .rich-text ul, #eh-shop .rich-text ol { margin: 0 0 .9rem; padding-left: 1.4rem; }
#eh-shop .rich-text li + li { margin-top: .35rem; }
#eh-shop .rich-text a { color: var(--primary); font-weight: 600; text-underline-offset: .16em; }
#eh-shop .rich-text blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--primary); color: var(--muted); }
#eh-shop .rich-text h2, #eh-shop .rich-text h3, #eh-shop .rich-text h4 { margin: 1.2rem 0 .6rem; line-height: 1.2; }
#eh-shop .product-options { display: grid; gap: .85rem; margin-top: 1.25rem; }
#eh-shop .option-error { min-height: 1.2em; margin: 0; color: #a33b16; font-size: .84rem; }
#eh-shop .product-information { margin: 1.25rem 0; }
#eh-shop .product-information details { border-bottom: 1px solid var(--line); background: white; }
#eh-shop .product-information summary { padding: 1rem; cursor: pointer; font-weight: 800; }
#eh-shop .product-information .rich-text { padding: 0 1rem 1rem; color: var(--muted); line-height: 1.6; }

#eh-shop .review-page, #eh-shop .error-page { width: min(1000px, calc(100% - 2rem)); margin: 3rem auto; padding: clamp(1.3rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
#eh-shop .review-page h1, #eh-shop .error-page h1 { margin: .35rem 0 1.5rem; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.045em; }
#eh-shop .notice { margin-bottom: 1.25rem; padding: 1rem; border-radius: 12px; }
#eh-shop .notice.preview { color: #4f290b; background: #fff0d8; }
#eh-shop .notice.error { color: #741b0c; background: #fee5df; }
#eh-shop .review-table-wrap { overflow-x: auto; }
#eh-shop .review-table { width: 100%; border-collapse: collapse; }
#eh-shop .review-table th, #eh-shop .review-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; }
#eh-shop .review-table td small { display: block; color: var(--muted); margin-top: .2rem; }
#eh-shop .review-table th:nth-child(n+2), #eh-shop .review-table td:nth-child(n+2) { text-align: right; }
#eh-shop .review-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }

@media (max-width: 1180px) {
  #eh-shop .shop-layout { grid-template-columns: 1fr; }
  #eh-shop .basket { position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(390px, 94vw); transform: translateX(105%); transition: transform .2s ease; box-shadow: -20px 0 50px rgba(11,31,42,.24); overflow-y: auto; }
  body.basket-open #eh-shop .basket { transform: translateX(0); }
  #eh-shop .basket-close { display: block; }
  #eh-shop .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  #eh-shop .catalogue-tools { grid-template-columns: 1fr 1fr; }
  #eh-shop .result-count { grid-column: 1 / -1; margin: 0; }
  #eh-shop .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #eh-shop .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #eh-shop .catalogue-column { padding: 1rem; }
  #eh-shop .shop-hero { padding: 1.35rem; }
  #eh-shop .shop-hero h1 { font-size: 1.848rem; }
  #eh-shop .catalogue-tools { grid-template-columns: 1fr; }
  #eh-shop .result-count { grid-column: auto; }
  #eh-shop .product-grid { gap: .7rem; }
  #eh-shop .product-card-body { padding: .8rem; }
  #eh-shop .product-card h2 { font-size: .9rem; }
  #eh-shop .card-actions { align-items: stretch; flex-direction: column; }
  #eh-shop .card-actions .button { width: 100%; }
  #eh-shop .text-link { text-align: center; }
  #eh-shop .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  #eh-shop .review-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  #eh-shop *, #eh-shop *::before, #eh-shop *::after { scroll-behavior: auto !important; transition: none !important; }
}
