.shop-page {
  background: #f7f9fc;
  color: #172033;
}

.shop-hero {
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(15, 118, 110, 0.9)),
    radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.22), transparent 34%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.shop-kicker,
.shop-section-heading span {
  display: inline-flex;
  align-items: center;
  color: #0f766e;
  background: #dff7f2;
  border: 1px solid #b9ece3;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.shop-hero .shop-kicker {
  color: #ffe8b0;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.shop-hero h1,
.shop-section-heading h1,
.shop-section-heading h2,
.shop-detail h1,
.shop-thank-you h1 {
  letter-spacing: 0;
}

.shop-hero h1 {
  max-width: 820px;
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
  font-weight: 900;
}

.shop-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.75;
}

.shop-hero-actions,
.shop-card-footer,
.shop-detail-nav,
.shop-detail-badges,
.shop-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.shop-hero-actions {
  margin-top: 1.5rem;
}

.shop-primary-btn,
.shop-secondary-btn,
.shop-basket-link,
.shop-icon-btn,
.shop-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shop-primary-btn {
  background: #0f766e;
  color: #fff;
  padding: 0.82rem 1.1rem;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
}

.shop-primary-btn:hover {
  color: #fff;
  background: #0b5f59;
  transform: translateY(-1px);
}

.shop-primary-btn span {
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #14213d;
  font-size: 0.78rem;
}

.shop-primary-btn [data-shop-add-label] {
  min-width: 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.shop-secondary-btn {
  background: #fff;
  color: #14213d;
  border: 1px solid #d8e0ea;
  padding: 0.78rem 1rem;
}

.shop-secondary-btn:hover,
.shop-basket-link:hover {
  color: #14213d;
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.12);
  transform: translateY(-1px);
}

.shop-hero-panel {
  display: grid;
  gap: 1rem;
}

.shop-hero-panel > div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 1.25rem;
}

.shop-hero-panel i {
  color: #fbbf24;
  font-size: 1.55rem;
}

.shop-hero-panel strong,
.shop-hero-panel span {
  display: block;
}

.shop-hero-panel strong {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.02rem;
}

.shop-hero-panel span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.shop-controls-section,
.shop-products-section,
.shop-featured,
.shop-detail,
.shop-basket,
.shop-thank-you {
  padding: 2.5rem 0;
}

.shop-controls {
  justify-content: space-between;
  width: 100%;
}

.shop-search-form {
  width: min(100%, 430px);
  flex: 0 1 430px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.06);
}

.shop-search-form input {
  border: 0;
  min-width: 0;
  outline: 0;
  font-size: 0.98rem;
}

.shop-search-form button {
  border: 0;
  background: #14213d;
  color: #fff;
  border-radius: 7px;
  padding: 0.62rem 0.9rem;
  font-weight: 800;
}

.shop-basket-link {
  margin-left: auto;
  background: #fff;
  color: #14213d;
  border: 1px solid #d8e0ea;
  padding: 0.76rem 0.95rem;
}

.shop-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.shop-filter-group {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 0.85rem;
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.05);
}

.shop-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #14213d;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.shop-collapsible-filter summary.shop-filter-label {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
  justify-content: flex-start;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  padding: 0.58rem 0.78rem;
}

.shop-collapsible-filter summary.shop-filter-label::-webkit-details-marker {
  display: none;
}

.shop-filter-chevron {
  margin-left: 0.3rem;
  transition: transform 0.2s ease;
}

.shop-collapsible-filter[open] .shop-filter-chevron {
  transform: rotate(180deg);
}

.shop-collapsible-filter[open] .shop-brand-tabs {
  margin-top: 0.75rem;
}

.shop-collapsible-filter[open] .shop-category-brand-grid {
  margin-top: 0.75rem;
}

.shop-brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.shop-category-brand-browser {
  margin-top: 1rem;
  background: #f8fafc;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 1rem;
}

.shop-category-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.shop-category-brand-card {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 0.85rem;
}

.shop-category-brand-card.active {
  border-color: #0f766e;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.12);
}

.shop-category-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #14213d;
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.shop-category-brand-title:hover {
  color: #0f766e;
}

.shop-category-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-category-brand-chips a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef3f9;
  color: #344054;
  border: 1px solid #d8e0ea;
  padding: 0.42rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.shop-category-brand-chips a.active,
.shop-category-brand-chips a:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #14213d;
}

.shop-guidance-box {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: #14213d;
  color: #fff;
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.35rem);
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.14);
}

.shop-guidance-box span {
  display: inline-flex;
  color: #fbbf24;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.shop-guidance-box h2 {
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 900;
  margin: 0.3rem 0 0.45rem;
}

.shop-guidance-box p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.6;
}

.shop-guidance-box .shop-primary-btn {
  white-space: nowrap;
  max-width: 100%;
}

.shop-category-tabs a,
.shop-brand-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid #d8e0ea;
  background: #fff;
  color: #344054;
  text-decoration: none;
  padding: 0.68rem 0.85rem;
  border-radius: 8px;
  font-weight: 800;
}

.shop-category-tabs a.active,
.shop-category-tabs a:hover,
.shop-brand-tabs a.active,
.shop-brand-tabs a:hover {
  background: #14213d;
  border-color: #14213d;
  color: #fff;
}

.shop-section-heading {
  margin-bottom: 1.35rem;
}

.shop-section-heading h1,
.shop-section-heading h2 {
  margin: 0.72rem 0 0;
  color: #14213d;
  font-weight: 900;
  line-height: 1.14;
}

.shop-section-heading p {
  margin: 0.7rem 0 0;
  max-width: 760px;
  color: #586476;
}

.shop-form-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #eef3f9;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: #344054;
  font-weight: 800;
}

.shop-section-heading.compact h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 310px));
  gap: 1.1rem;
  justify-content: start;
}

.shop-product-grid.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 300px));
}

.shop-product-card,
.shop-summary-card,
.shop-request-form,
.shop-basket-line,
.shop-detail-panels section,
.shop-thank-you-card,
.shop-empty-state {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.07);
}

.shop-local-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.shop-local-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.shop-local-alert.error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.shop-product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.shop-card-media,
.shop-detail-media,
.shop-basket-media {
  background: #eef3f9;
}

.shop-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 230px;
  overflow: hidden;
}

.shop-card-media img,
.shop-detail-media img,
.shop-basket-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.shop-card-media img {
  padding: 0.65rem;
}

.shop-image-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #708095;
  text-align: center;
}

.shop-image-placeholder i {
  display: block;
  font-size: 2rem;
}

.shop-image-placeholder.large {
  min-height: 430px;
}

.shop-availability {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: #fef3c7;
  color: #7c4a03;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 900;
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
}

.shop-card-category,
.shop-card-meta {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 700;
}

.shop-card-body h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.32;
  font-weight: 900;
}

.shop-card-body h3 a,
.shop-basket-info h2 a {
  color: #14213d;
  text-decoration: none;
}

.shop-card-description {
  flex: 1;
  margin: 0;
  color: #586476;
  line-height: 1.55;
  font-size: 0.93rem;
}

.shop-card-match {
  margin: -0.15rem 0 0;
  color: #344054;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.shop-card-match span {
  display: block;
  color: #92400e;
  font-weight: 900;
  margin-bottom: 0.15rem;
}

.shop-card-footer {
  justify-content: space-between;
  border-top: 1px solid #e8edf4;
  padding-top: 0.75rem;
}

.shop-price {
  color: #0f766e;
  font-weight: 900;
}

.shop-search-highlight {
  background: #ffe66d;
  color: inherit;
  border-radius: 4px;
  padding: 0.02rem 0.12rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.shop-icon-btn {
  width: 2.45rem;
  height: 2.45rem;
  color: #fff;
  background: #0f766e;
}

.shop-icon-btn:hover {
  color: #fff;
  background: #0b5f59;
}

.shop-icon-btn.is-added,
.shop-primary-btn.is-added {
  background: #15803d;
  color: #fff;
  box-shadow: 0 16px 34px rgba(21, 128, 61, 0.22);
}

.shop-icon-btn.is-added:hover,
.shop-primary-btn.is-added:hover {
  background: #166534;
}

.shop-icon-btn.is-loading,
.shop-primary-btn.is-loading {
  cursor: wait;
  opacity: 0.75;
}

.shop-card-footer form {
  margin: 0;
}

.shop-add-status {
  grid-column: 1 / -1;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 800;
}

.shop-add-status.is-error {
  color: #be123c;
}

.shop-field-help {
  margin: 0.45rem 0 0;
  color: #586476;
  font-size: 0.88rem;
  line-height: 1.45;
}

.shop-field-help a {
  color: #0f766e;
  font-weight: 800;
}

.shop-card-footer .shop-add-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.shop-empty-state i {
  color: #0f766e;
  font-size: 2.7rem;
}

.shop-empty-state h2,
.shop-empty-state h3 {
  color: #14213d;
  margin-top: 1rem;
  font-weight: 900;
}

.shop-empty-state p {
  color: #586476;
  max-width: 620px;
  margin: 0.5rem auto 1.2rem;
}

.shop-detail-nav {
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.shop-detail-nav > a:first-child {
  color: #14213d;
  font-weight: 800;
  text-decoration: none;
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem;
  align-items: start;
}

.shop-detail-media {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #dfe6ef;
  min-height: 430px;
}

.shop-detail-media img {
  min-height: 430px;
  padding: 1rem;
}

.shop-detail-gallery {
  display: grid;
  gap: 0.85rem;
  background: #eef3f9;
}

.shop-gallery-main {
  position: relative;
  width: 100%;
  display: block;
  border: 0;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: crosshair;
}

.shop-detail-media .shop-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  min-height: 430px;
  object-fit: contain;
  padding: 1rem;
  transform: scale(var(--shop-hover-zoom, 1));
  transform-origin: var(--shop-hover-x, 50%) var(--shop-hover-y, 50%);
  transition: transform 0.18s ease, transform-origin 0.08s ease;
}

.shop-gallery-main.is-hover-zooming img {
  --shop-hover-zoom: 2.05;
}

.shop-gallery-zoom-hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.88);
  color: #fff;
  padding: 0.45rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 800;
  pointer-events: none;
}

.shop-gallery-main-nav,
.shop-gallery-open-lightbox {
  position: absolute;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 33, 61, 0.88);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.shop-gallery-main-nav {
  top: 50%;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.shop-gallery-main-nav.prev {
  left: 0.75rem;
}

.shop-gallery-main-nav.next {
  right: 0.75rem;
}

.shop-gallery-open-lightbox {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 8px;
}

.shop-gallery-main-nav:hover,
.shop-gallery-open-lightbox:hover {
  background: #0f766e;
  color: #fff;
}

.shop-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0 0.85rem 0.85rem;
}

.shop-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.shop-gallery-thumb.active,
.shop-gallery-thumb:hover {
  border-color: #0f766e;
}

.shop-detail-media .shop-gallery-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 0.35rem;
}

.shop-gallery-lightbox[hidden] {
  display: none;
}

.shop-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1rem;
  background: rgba(8, 13, 24, 0.94);
  padding: clamp(1rem, 3vw, 2rem);
}

.shop-gallery-lightbox-frame {
  grid-column: 2;
  grid-row: 1;
  max-width: min(100%, 1100px);
  max-height: 82vh;
  margin: 0 auto;
  overflow: auto;
  text-align: center;
  touch-action: pan-y;
}

.shop-detail-media .shop-gallery-lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
  background: transparent;
  transform: scale(var(--shop-gallery-zoom, 1));
  transform-origin: center center;
  transition: transform 0.16s ease;
}

.shop-gallery-lightbox-frame figcaption {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.shop-gallery-lightbox-close,
.shop-gallery-lightbox-nav,
.shop-gallery-zoom-controls button {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
}

.shop-gallery-lightbox-nav {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.35rem;
}

.shop-gallery-lightbox-nav.prev {
  grid-column: 1;
  grid-row: 1;
}

.shop-gallery-lightbox-nav.next {
  grid-column: 3;
  grid-row: 1;
}

.shop-gallery-lightbox-close:hover,
.shop-gallery-lightbox-nav:hover,
.shop-gallery-zoom-controls button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.shop-gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-gallery-zoom-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.shop-gallery-zoom-controls button {
  min-width: 2.6rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.75rem;
  font-weight: 900;
}

.shop-detail-content {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.shop-detail-content h1 {
  margin: 1rem 0 0.7rem;
  color: #14213d;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.shop-detail-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: #586476;
}

.shop-detail-badges {
  margin: 1rem 0;
}

.shop-detail-badges span {
  background: #eef3f9;
  color: #14213d;
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  font-weight: 800;
}

.shop-lead,
.shop-copy {
  color: #4c5a6f;
  line-height: 1.7;
}

.shop-richtext {
  overflow-wrap: anywhere;
}

.shop-richtext > *:first-child {
  margin-top: 0;
}

.shop-richtext > *:last-child {
  margin-bottom: 0;
}

.shop-richtext h2,
.shop-richtext h3,
.shop-richtext h4 {
  color: #14213d;
  font-weight: 900;
  line-height: 1.25;
  margin: 1rem 0 0.45rem;
}

.shop-richtext h2 {
  font-size: 1.35rem;
}

.shop-richtext h3 {
  font-size: 1.15rem;
}

.shop-richtext p {
  margin: 0 0 0.85rem;
}

.shop-richtext ul,
.shop-richtext ol {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.shop-richtext li {
  padding-left: 0.15rem;
}

.shop-richtext strong {
  color: #14213d;
}

.shop-richtext a {
  color: #0f766e;
  font-weight: 800;
}

.shop-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow-x: auto;
}

.shop-richtext th,
.shop-richtext td {
  border: 1px solid #d8e0ea;
  padding: 0.65rem;
  vertical-align: top;
}

.shop-richtext th {
  background: #eef3f9;
  color: #14213d;
}

.shop-add-form {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.8rem;
  align-items: end;
}

.shop-add-form label,
.shop-form-grid label,
.shop-basket-controls label {
  display: block;
  color: #14213d;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.shop-add-form input,
.shop-form-grid input,
.shop-form-grid textarea,
.shop-form-grid select,
.shop-basket-controls input {
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
}

.shop-detail-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.shop-detail-panels section {
  padding: 1.25rem;
}

.shop-detail-panel-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #dff7f2;
  color: #0f766e;
  margin-bottom: 0.75rem;
}

.shop-detail-panels h2 {
  color: #14213d;
  font-weight: 900;
  font-size: 1.2rem;
}

.shop-detail-panels p {
  color: #586476;
  line-height: 1.65;
  margin-bottom: 0;
}

.shop-related {
  margin-top: 2rem;
}

.shop-basket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.shop-basket-update-form {
  display: grid;
  gap: 1rem;
}

.shop-basket-line {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.shop-basket-media {
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  color: #708095;
}

.shop-basket-info h2 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 900;
}

.shop-basket-info p {
  margin: 0.3rem 0 0.8rem;
  color: #667085;
}

.shop-basket-controls {
  display: grid;
  grid-template-columns: 100px minmax(180px, 1fr);
  gap: 0.7rem;
}

.shop-basket-price {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  color: #0f766e;
}

.shop-remove-btn {
  background: #fff1f2;
  color: #be123c;
  padding: 0.55rem 0.65rem;
  border: 1px solid #fecdd3;
}

.shop-summary-card,
.shop-request-form {
  padding: 1.25rem;
}

.shop-summary-card {
  position: sticky;
  top: 94px;
}

.shop-summary-card h2 {
  margin: 0 0 1rem;
  color: #14213d;
  font-weight: 900;
  font-size: 1.18rem;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e8edf4;
  padding: 0.78rem 0;
}

.shop-summary-row strong {
  color: #0f766e;
}

.shop-summary-card p {
  color: #586476;
  line-height: 1.55;
  margin: 1rem 0 0;
}

.shop-request-form-section {
  margin-top: 1.5rem;
}

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shop-form-wide {
  grid-column: 1 / -1;
}

.shop-consent-box {
  margin: 1.1rem 0;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  background: #fff;
  border: 1px solid #d7dde8;
  border-radius: 4px;
  padding: 1rem 1.1rem;
  color: #172033;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.shop-consent-box:hover {
  border-color: #b7c1d1;
}

.shop-consent-checkbox {
  width: 1.55rem;
  height: 1.55rem;
  margin: 0.08rem 0 0;
  appearance: none;
  background: #fff;
  border: 2px solid #6b7280;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  place-self: start center;
}

.shop-consent-box > span {
  display: block;
  line-height: 1.45;
}

.shop-consent-checkbox:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.shop-consent-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 0.43rem;
  top: 0.18rem;
  width: 0.45rem;
  height: 0.85rem;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.shop-consent-checkbox:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.shop-consent-box a {
  color: #1d4ed8;
  font-weight: 900;
}

.shop-recaptcha {
  margin: 1rem 0;
}

.shop-submit-btn {
  width: 100%;
}

.shop-thank-you {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

.shop-thank-you-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.shop-thank-you-card > i {
  color: #0f766e;
  font-size: 3.5rem;
}

.shop-thank-you-card > span {
  display: block;
  margin-top: 0.8rem;
  color: #0f766e;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.shop-thank-you-card h1 {
  color: #14213d;
  font-weight: 900;
  margin: 0.75rem 0;
}

.shop-thank-you-card p {
  color: #586476;
}

.shop-thank-you-card .shop-hero-actions {
  justify-content: center;
}

.errorlist {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #be123c;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .shop-hero-grid,
  .shop-detail-grid,
  .shop-basket-grid {
    grid-template-columns: 1fr;
  }

  .shop-summary-card {
    position: static;
  }

  .shop-add-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .shop-hero,
  .shop-controls-section,
  .shop-products-section,
  .shop-featured,
  .shop-detail,
  .shop-basket,
  .shop-thank-you {
    padding: 2rem 0;
  }

  .shop-controls,
  .shop-detail-nav,
  .shop-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-search-form {
    width: 100%;
    flex-basis: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.42rem 0.45rem 0.42rem 0.72rem;
  }

  .shop-search-form input {
    font-size: 0.94rem;
  }

  .shop-search-form button {
    grid-column: auto;
    width: auto;
    align-self: stretch;
    padding: 0.58rem 0.72rem;
  }

  .shop-basket-link,
  .shop-primary-btn,
  .shop-secondary-btn {
    width: 100%;
  }

  .shop-guidance-box {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.85rem;
    overflow-wrap: anywhere;
  }

  .shop-guidance-box .shop-primary-btn {
    white-space: normal;
    min-width: 0;
    text-align: center;
    line-height: 1.35;
  }

  .shop-category-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shop-brand-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-product-grid,
  .shop-product-grid.featured-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .shop-card-media {
    max-height: 220px;
  }

  .shop-detail-media,
  .shop-detail-media img,
  .shop-image-placeholder.large {
    min-height: 300px;
  }

  .shop-detail-media .shop-gallery-main img {
    min-height: 300px;
    max-height: 380px;
  }

  .shop-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    overflow-x: auto;
  }

  .shop-detail-media .shop-gallery-thumb img,
  .shop-detail-media .shop-gallery-lightbox-frame img {
    min-height: 0;
  }

  .shop-gallery-lightbox {
    grid-template-columns: 2.7rem minmax(0, 1fr) 2.7rem;
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .shop-gallery-lightbox-nav {
    width: 2.7rem;
    height: 2.7rem;
  }

  .shop-gallery-zoom-hint {
    left: 0.75rem;
    right: auto;
    font-size: 0.78rem;
  }

  .shop-basket-line {
    grid-template-columns: 86px 1fr;
    align-items: start;
  }

  .shop-basket-media {
    width: 86px;
  }

  .shop-basket-price {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .shop-basket-controls,
  .shop-form-grid {
    grid-template-columns: 1fr;
  }

  .shop-remove-btn {
    width: 100%;
  }
}
