/* TRAPARY 5.4 — targeted refinements; no global design reset. */

/* The product page uses the normal purchase button in its information column.
   Old fixed purchase strip is removed from markup and permanently suppressed. */
.mobile-add-bar { display: none !important; }

/* The normal four-item mobile navigation also belongs on product detail pages.
   Leave the checkout and order confirmation flows unchanged. */
@media (max-width: 700px) {
  body[data-screen="product"] .mobile-tabbar {
    display: grid;
  }
  /* Earlier mobile CSS hid the normal purchase/wishlist controls in favor
     of the fixed purchase strip. Restore them in the natural page flow. */
  body[data-screen="product"] .detail-copy .detail-actions {
    display: flex;
    align-items: stretch;
    margin-top: 16px;
  }
  body[data-screen="product"] .detail-copy .detail-actions .detail-buy {
    min-width: 0;
    flex: 1 1 auto;
  }
  body[data-screen="product"] .site-footer {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar [data-tab="favorites"] i#tab-wish-count {
    position: absolute;
    top: 1px;
    right: max(5px, calc(50% - 30px));
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    background: #111;
    color: white;
    font: 800 12px/1 Manrope, Arial, sans-serif;
    font-style: normal;
    border: 1px solid #fff;
  }
  .mobile-tabbar [data-tab="favorites"] i#tab-wish-count[hidden] {
    display: none !important;
  }
}

/* Search: keep a single underline; browser focus does not draw an extra box. */
#search-overlay .search-head #search-input,
#search-overlay .search-head #search-input:focus,
#search-overlay .search-head #search-input:focus-visible {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  outline-offset: 0;
  box-shadow: none !important;
  background: transparent;
}
#search-overlay .search-head { border-bottom: 2px solid #141414; }
#search-overlay .search-head:focus-within { border-bottom-color: #141414; }
#search-overlay .search-head #search-input::-webkit-search-decoration,
#search-overlay .search-head #search-input::-webkit-search-cancel-button,
#search-overlay .search-head #search-input::-webkit-search-results-button,
#search-overlay .search-head #search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Article: one consistent editorial content width from heading through image and
   body. The journal index is intentionally unaffected. */
.journal-article {
  width: min(100%, 840px);
  margin-inline: auto;
}
.journal-article .journal-article-header,
.journal-article .journal-article-image,
.journal-article .journal-article-content {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.journal-article .journal-article-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 35px;
}
.journal-article .journal-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-article .journal-article-prose {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.9;
}
.journal-article .journal-article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.journal-article .journal-article-end .journal-back-link {
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.journal-article .journal-article-end .journal-shop-cta,
.blog-main .journal-article-end .journal-shop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  background: #141414;
  border: 1px solid #141414;
  border-radius: 0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.journal-article .journal-article-end .journal-shop-cta:hover,
.journal-article .journal-article-end .journal-shop-cta:focus-visible {
  background: #333;
}
@media (max-width: 600px) {
  .journal-article .journal-article-image {
    aspect-ratio: 4 / 3;
    margin-bottom: 28px;
  }
  .journal-article .journal-article-prose {
    font-size: 14px;
  }
  .journal-article .journal-article-end {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
  }
  .journal-article .journal-article-end .journal-shop-cta {
    width: 100%;
  }
  .journal-article .journal-article-end .journal-back-link {
    align-self: center;
  }
}
