* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    html, body {
      overflow-x: hidden;
      width: 100%;
    }

    @supports (overflow: clip) {
      html, body {
        overflow-x: clip;
      }
    }

    img {
      max-width: 100%;
      height: auto;
    }

    body {
      font-family: Georgia, serif;
      background: linear-gradient(to bottom, #fefaf4 0%, #f9f0e6 100%);
      color: #3a2e1f;
      line-height: 1.7;
      min-height: 100vh;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 15px;
      width: 100%;
    }

    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 0;
    }

    .site-header {
      background:
        radial-gradient(circle at 12% 20%, rgba(198, 134, 66, 0.12), transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(166, 124, 82, 0.1), transparent 26%),
        linear-gradient(to bottom, #fffdfa, #f9f0e6);
      padding: 28px 16px 26px;
      text-align: center;
      border-bottom: 6px double #c68642;
    }

    h1 {
      font-size: clamp(2.1rem, 8vw, 3rem);
      color: #3a2e1f;
      margin: 8px 0 6px;
      text-shadow: 1px 1px 0 rgba(166, 124, 82, 0.15);
    }

    .tagline {
      font-size: 1.15rem;
      color: #8b5a2b;
      font-style: italic;
      margin: 0 auto 16px;
    }

    .site-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .site-nav a {
      text-decoration: none;
      color: #5c4630;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.04em;
      background: #fffdfa;
      border: 2px dashed #d9b38c;
      border-radius: 999px;
      padding: 8px 16px;
    }

    .site-nav a:hover {
      color: #c68642;
      border-color: #c68642;
      background: #f4e9db;
    }

    .site-nav a:focus-visible,
    .footer-nav a:focus-visible,
    .search-card button:focus-visible,
    .ebay-button:focus-visible {
      outline: 3px solid #c68642;
      outline-offset: 2px;
    }

    .promo-button {
      background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
      padding: 26px 20px 24px;
      border-radius: 18px;
      border: 5px double #a67c52;
      box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
      text-align: center;
      margin: 0 auto 36px;
      max-width: 720px;
      width: 100%;
      position: relative;
    }

    .promo-button::before {
      content: "";
      position: absolute;
      top: 10px;
      left: 12px;
      right: 12px;
      bottom: 10px;
      border: 1px dashed #d9b38c;
      border-radius: 12px;
      pointer-events: none;
    }

    .promo-title {
      color: #c68642;
      font-size: clamp(1.6rem, 6vw, 2.2rem);
      font-weight: bold;
      display: block;
      letter-spacing: 0.04em;
      position: relative;
    }

    .promo-subtitle {
      color: #3a2e1f;
      font-size: 1.35rem;
      font-weight: bold;
      display: block;
      margin: 10px 0 6px;
      position: relative;
    }

    .promo-note {
      color: #8b5a2b;
      font-size: 1.05rem;
      font-style: italic;
      display: block;
      position: relative;
    }

    .promo-stock {
      color: #084200;
      font-size: 1.35rem;
      font-weight: bold;
      display: block;
      margin: 16px 0 8px;
      position: relative;
    }

    .promo-contact {
      color: #5c4630;
      font-size: 1.1rem;
      position: relative;
    }

    .promo-contact a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px dashed #c68642;
    }

    .page-intro {
      text-align: center;
      max-width: 720px;
      margin: 0 auto 10px;
    }

    .page-intro h2,
    .search-heading {
      font-size: clamp(1.55rem, 5vw, 2rem);
      color: #3a2e1f;
      margin: 8px 0 6px;
      text-shadow: 1px 1px 0 rgba(166, 124, 82, 0.15);
    }

    .intro-note {
      color: #5c4630;
      font-style: italic;
      margin: 0 auto 18px;
      max-width: 520px;
    }

    .machine-frame {
      display: inline-block;
      max-width: 100%;
      border: 5px double #a67c52;
      border-radius: 18px;
      padding: 0;
      margin: 6px auto 18px;
      box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
      overflow: hidden;
      line-height: 0;
    }

    .machine-frame img {
      display: block;
      max-width: 275px;
      width: 100%;
      height: auto;
    }

    .paypal-chip {
      display: inline-block;
      max-width: 100%;
      background: #fffdfa;
      border: 2px dashed #d9b38c;
      border-radius: 18px;
      padding: 10px 14px 6px;
      margin: 0 auto 28px;
    }

    .paypal-logo {
      display: block;
      margin: 0 auto;
      max-width: min(300px, 100%);
      height: auto;
    }

    .products-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px 30px;
      margin: 28px auto 40px;
    }

    .product-block {
      flex: 0 1 calc((100% - 60px) / 3);
      max-width: calc((100% - 60px) / 3);
      background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
      border: 5px double #a67c52;
      border-radius: 18px;
      padding: 12px 12px 18px;
      text-align: center;
      box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      scroll-margin-top: 88px;
    }

    .product-block::before {
      display: none;
    }

    @media (hover: hover) and (pointer: fine) {
      .product-block:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 28px rgba(166, 124, 82, 0.22);
      }
    }

    .product-block img {
      max-width: 100%;
      width: 100%;
      height: auto;
      background: transparent;
      border: 3px solid #a67c52;
      border-radius: 12px;
      margin: 0 auto 16px;
      display: block;
      position: relative;
      vertical-align: top;
    }

    .product-block h3 {
      color: #5c4630;
      margin: 8px 0 16px;
      font-size: 1.28rem;
      line-height: 1.35;
      min-height: 3.4em;
      position: relative;
      overflow-wrap: break-word;
    }

    .brand {
      color: #084200;
    }

    paypal-add-to-cart-button {
      display: block;
      margin: 15px auto;
      position: relative;
    }

    paypal-cart-button[data-id="pp-view-cart"] {
      position: fixed !important;
      top: max(14px, env(safe-area-inset-top));
      right: max(16px, env(safe-area-inset-right));
      left: auto;
      bottom: auto;
      z-index: 5000;
      display: block !important;
      filter: drop-shadow(0 8px 16px rgba(58, 46, 31, 0.2));
    }

    @media (max-width: 768px) {
      paypal-cart-button[data-id="pp-view-cart"] {
        top: max(10px, env(safe-area-inset-top));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
      }

      .site-header {
        padding-top: calc(82px + env(safe-area-inset-top, 0px));
      }
    }

    .pp-add-to-cart-container,
    .paypal-button-container,
    paypal-add-to-cart-button * {
      font-size: 1.1rem !important;
      font-family: Georgia, serif !important;
    }

    .pp-price {
      font-size: 1.25rem !important;
      font-weight: bold;
    }

    .ebay-button {
      display: inline-block;
      background: #c68642;
      color: #fffdfa;
      padding: 12px 28px;
      font-size: 1.05rem;
      font-weight: bold;
      font-family: Georgia, serif;
      text-decoration: none;
      border-radius: 999px;
      margin: 8px auto 0;
      border: 2px solid #8b5a2b;
      box-shadow: 0 4px 0 #8b5a2b;
    }

    .ebay-button:hover {
      background: #b37438;
    }

    .copyright-btn {
      background: transparent;
      color: #f9f0e6;
      font-family: Georgia, serif;
      font-size: 0.95rem;
      letter-spacing: 0.12em;
      padding: 8px 18px;
      border: 2px dashed #c68642;
      border-radius: 999px;
      margin: 18px auto 0;
      cursor: default;
      display: inline-block;
    }

    footer {
      background:
        radial-gradient(circle at 18% 20%, rgba(198, 134, 66, 0.18), transparent 30%),
        linear-gradient(to top, #3a2e1f, #5c4630);
      color: #f9f0e6;
      text-align: center;
      padding: 42px 16px max(36px, env(safe-area-inset-bottom, 0px));
      margin-top: 64px;
      border-top: 6px double #c68642;
      width: 100%;
    }

    footer > * {
      margin-left: auto;
      margin-right: auto;
    }

    .footer-kicker {
      display: inline-block;
      color: #f4e9db;
      font-style: italic;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-size: 0.8rem;
      border-top: 2px dashed #c68642;
      border-bottom: 2px dashed #c68642;
      padding: 4px 16px;
      margin-bottom: 12px;
    }

    .footer-heading {
      font-size: 1.6rem;
      color: #fffdfa;
      margin: 8px 0;
    }

    .footer-note {
      color: #f4e9db;
      font-style: italic;
      max-width: 480px;
      margin: 0 auto 18px;
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin: 18px auto 8px;
    }

    .footer-nav a {
      color: #f9f0e6;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      border: 2px dashed rgba(217, 179, 140, 0.55);
      border-radius: 999px;
      padding: 7px 14px;
    }

    .footer-nav a:hover {
      color: #c68642;
      border-color: #c68642;
    }

    .footer-copy {
      margin-top: 8px;
    }

    .product-block.is-hidden {
      display: none !important;
    }

    .search-studio {
      background:
        radial-gradient(circle at 12% 20%, rgba(198, 134, 66, 0.12), transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(166, 124, 82, 0.1), transparent 26%),
        linear-gradient(to bottom, #fffdfa, #f9f0e6);
      border-bottom: 6px double #c68642;
      padding: 28px 16px 34px;
    }

    .search-studio-inner {
      max-width: 980px;
      margin: 0 auto;
      text-align: center;
    }

    .search-kicker {
      display: inline-block;
      max-width: 100%;
      color: #8b5a2b;
      font-style: italic;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.85rem;
      border-top: 2px dashed #c68642;
      border-bottom: 2px dashed #c68642;
      padding: 4px 12px;
      margin-bottom: 12px;
      overflow-wrap: anywhere;
    }

    .search-intro {
      color: #5c4630;
      font-style: italic;
      margin: 0 auto 22px;
      max-width: 640px;
    }

    .search-needle {
      display: block;
      width: 160px;
      height: 22px;
      margin: 0 auto 18px;
    }

    .search-panels {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 22px;
    }

    .search-card {
      flex: 1 1 280px;
      max-width: 460px;
      width: 100%;
      background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
      border: 5px double #a67c52;
      border-radius: 18px;
      padding: 22px 22px 20px;
      box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
      text-align: left;
      position: relative;
    }

    .search-card::before {
      content: "";
      position: absolute;
      top: 10px;
      left: 12px;
      right: 12px;
      bottom: 10px;
      border: 1px dashed #d9b38c;
      border-radius: 12px;
      pointer-events: none;
    }

    .search-card-label {
      display: block;
      color: #084200;
      font-size: 1.15rem;
      font-weight: bold;
      margin-bottom: 4px;
      position: relative;
    }

    .search-card-note {
      display: block;
      color: #8b5a2b;
      font-size: 0.95rem;
      font-style: italic;
      margin-bottom: 14px;
      position: relative;
    }

    .search-row {
      display: flex;
      gap: 8px;
      position: relative;
    }

    .search-card input[type="search"] {
      flex: 1;
      min-width: 0;
      width: 100%;
      font-family: Georgia, serif;
      font-size: 16px;
      color: #3a2e1f;
      background: #fffdfa;
      border: 2px solid #c68642;
      border-radius: 999px;
      padding: 12px 16px;
      outline: none;
      -webkit-appearance: none;
      appearance: none;
    }

    .search-card input[type="search"]:focus {
      border-color: #8b5a2b;
      box-shadow: 0 0 0 3px rgba(198, 134, 66, 0.25);
    }

    .search-card button {
      flex: 0 0 auto;
      font-family: Georgia, serif;
      font-size: 1rem;
      font-weight: bold;
      border-radius: 999px;
      padding: 12px 18px;
      cursor: pointer;
      white-space: nowrap;
    }

    .search-shop-btn {
      background: #c68642;
      color: #fffdfa;
      border: 2px solid #8b5a2b;
      box-shadow: 0 4px 0 #8b5a2b;
    }

    .search-shop-btn:hover {
      background: #b37438;
    }

    .search-page-btn {
      background: #fffdfa;
      color: #5c4630;
      border: 2px dashed #a67c52;
    }

    .search-page-btn:hover {
      background: #f4e9db;
      color: #3a2e1f;
    }

    .search-status {
      min-height: 1.4em;
      margin-top: 12px;
      color: #8b5a2b;
      font-style: italic;
      font-size: 0.95rem;
      position: relative;
    }

    .shop-search-results {
      list-style: none;
      margin-top: 10px;
      max-height: 220px;
      overflow-y: auto;
      position: relative;
      text-align: left;
    }

    .shop-search-results li {
      border-bottom: 1px dashed #d9b38c;
    }

    .shop-search-results a {
      display: block;
      color: #5c4630;
      text-decoration: none;
      font-weight: 600;
      padding: 10px 4px;
      min-height: 44px;
    }

    .shop-search-results a:hover {
      color: #c68642;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 900px) {
      .product-block {
        flex-basis: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
      }
    }

    @media (max-width: 600px) {
      .main-content {
        padding: 24px 0;
      }

      .search-row {
        flex-direction: column;
      }

      .search-card {
        padding: 18px 16px 16px;
      }

      .search-card button {
        width: 100%;
      }
    }

    @media (max-width: 480px) {
      .product-block {
        flex-basis: 100%;
        max-width: 100%;
      }

      .product-block h3 {
        min-height: 0;
      }

      .site-nav a,
      .footer-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
      }
    }

.promo {
  background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
  padding: 26px 20px 24px;
  border-radius: 18px;
  border: 5px double #a67c52;
  box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
  text-align: center;
  margin: 0 auto 36px;
  max-width: 720px;
  width: 100%;
  position: relative;
}

.machines-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 22px;
  margin: 28px auto 40px;
}

.machine-card {
  flex: 0 1 260px;
  max-width: 280px;
  background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
  border: 5px double #a67c52;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
  scroll-margin-top: 88px;
}

.machine-card img {
  width: 100%;
  height: auto;
  border: 3px solid #a67c52;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px;
  background: transparent;
}

.machine-card h3 {
  color: #5c4630;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 8px 0 4px;
}

.machine-card a {
  color: inherit;
  text-decoration: none;
}

.machine-card.is-hidden,
.brand-card.is-hidden {
  display: none !important;
}

.accessories-link,
a.accessories {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: #fffdfa;
  border: 2px dashed #a67c52;
  border-radius: 999px;
  color: #5c4630;
  font-weight: bold;
  text-decoration: none;
}

.accessories-link:hover,
a.accessories:hover {
  background: #f4e9db;
  color: #c68642;
  border-color: #c68642;
}

.paypal-container,
[id^="paypal-container-"] {
  margin: 8px auto;
  position: relative;
  max-width: 100%;
}

.main-cta-button {
  background: #c68642;
  color: #fffdfa;
  font-size: 1rem;
  font-family: Georgia, serif;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid #8b5a2b;
  box-shadow: 0 4px 0 #8b5a2b;
  cursor: pointer;
}

.products-grid.single-item .product-block {
  flex-basis: min(480px, 100%);
  max-width: 480px;
}

.needles-section {
  max-width: 520px;
  margin: 0 auto 40px;
  text-align: center;
}

.alpha-menu {
  text-align: center;
  margin: 40px auto 30px;
  padding: 20px;
  background: #fffdfa;
  border: 5px double #a67c52;
  border-radius: 16px;
  max-width: 1100px;
}

.alpha-menu a {
  display: inline-block;
  padding: 10px 16px;
  margin: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #5c4630;
  text-decoration: none;
  border-radius: 999px;
  border: 2px dashed #d9b38c;
}

.alpha-menu a:hover {
  background: #f4e9db;
  color: #c68642;
  border-color: #c68642;
}

.letter-header {
  font-size: 2.2rem;
  color: #c68642;
  margin: 40px 0 25px;
  padding-bottom: 10px;
  border-bottom: 4px solid #a67c52;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.brand-card {
  background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
  border: 4px double #a67c52;
  border-radius: 14px;
  padding: 20px 15px;
  text-align: center;
}

.brand-card a {
  color: #5c4630;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}

.machine-img {
  max-width: 100%;
  width: auto;
  height: auto;
  border: 3px solid #a67c52;
  border-radius: 12px;
  display: block;
  margin: 12px auto;
  background: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: #8b5a2b;
  font-style: italic;
}

.section-title {
  font-size: clamp(1.55rem, 5vw, 2rem);
  color: #5c4630;
  margin: 0 auto 25px;
  padding-bottom: 10px;
  border-bottom: 3px dashed #c68642;
  max-width: 720px;
  text-align: center;
}

.returns-policy {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1em;
  text-align: left;
}

.returns-policy h3 {
  color: #c68642;
  margin: 1.5em 0 0.8em;
}

.contact-details,
.contact-highlight,
.welcome {
  background: linear-gradient(180deg, #fffdfa 0%, #f4e9db 100%);
  padding: 28px 22px;
  border: 5px double #a67c52;
  border-radius: 18px;
  max-width: 720px;
  margin: 28px auto;
  box-shadow: 0 10px 22px rgba(166, 124, 82, 0.16);
}

.contact-details {
  text-align: left;
}

.welcome h2 {
  font-size: clamp(1.55rem, 5vw, 2rem);
  color: #c68642;
  margin-bottom: 16px;
}

.highlight {
  color: #c68642;
  font-weight: bold;
}

form {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: left;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: bold;
  color: #5c4630;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #c68642;
  border-radius: 12px;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #3a2e1f;
  background: #fffdfa;
}

textarea {
  min-height: 160px;
}

input[type="submit"] {
  background: #c68642;
  color: #fffdfa;
  border: 2px solid #8b5a2b;
  box-shadow: 0 4px 0 #8b5a2b;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-family: Georgia, serif;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 20px;
}

input[type="submit"]:hover {
  background: #b37438;
}

a.mammy4,
.mammy4 {
  display: block;
  color: #5c4630;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
}

a.mammy4:hover,
.mammy4:hover {
  color: #c68642;
}

.products-grid > h2,
h2.section-title {
  flex-basis: 100%;
  max-width: 100%;
  width: 100%;
  text-align: center;
  color: #3a2e1f;
  margin: 0 0 24px;
}
