/* Final proportional adjustments based on the supplied reference. */
.product-grid h3,
.feature-grid h3 {
  font-size: 17px;
  line-height: 1.08;
  min-height: 38px;
}

.brand-short { display: none; }

/* Page 1-inspired Powered X Prayer wordmark. */
.brand {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .015em;
  text-transform: none;
}

.brand img {
  width: 31px;
  height: 31px;
  filter: none;
  object-fit: contain;
}

.brand b { color: var(--gold); }
.nav-home { padding-inline: 4px; font-size: 22px; line-height: 1; }

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .015em;
}

.footer-wordmark img {
  width: 30px;
  height: 30px;
  filter: none;
  object-fit: contain;
}

.footer-wordmark b { color: var(--gold); }

.footer-brand .social-links {
  display: flex;
  gap: 11px;
  margin-top: 12px;
}

.social-links a {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(226, 179, 76, .72);
  border-radius: 50%;
  color: #f5ead2;
  font: 700 14px var(--body);
}

.social-links a:hover { background: rgba(188, 141, 46, .28); }

.site-header { position: relative; }
.search-toggle,
.cart-link { box-shadow: none !important; }
.header-actions { align-items: center; }
.header-actions .cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  color: #fff;
  font-size: 22px;
  white-space: nowrap;
  animation: cart-nudge 9s ease-in-out infinite !important;
}
.header-actions .cart-link::after { content: "View cart"; color: #ead7ad; font: 700 10px var(--body); letter-spacing: .04em; text-transform: uppercase; }
@keyframes cart-nudge { 0%, 88%, 100% { transform: translateY(0); } 91% { transform: translateY(-2px); } 94% { transform: translateY(0); } 97% { transform: translateY(-1px); } }
.shop-search {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: clamp(16px, 3vw, 42px);
  display: block;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #c8a55e;
  border-radius: 6px;
  background: #fffdfa;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
}
.shop-search[hidden] { display: none; }
.search-field { display: flex; }
.shop-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  color: #242018;
  font: 600 13px var(--body);
}
.search-clear {
  border: 0;
  padding: 0 13px;
  background: #efe4c9;
  color: #725516;
  font-size: 22px;
  cursor: pointer;
}
.shop-search button { animation: none; }
.search-suggestions { max-height: min(52vh, 380px); overflow: auto; border-top: 1px solid #eadbbd; background: #fffdfa; }
.search-results-label,.search-no-results { margin: 0; padding: 10px 14px 7px; color: #8b6721; font: 700 10px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.search-no-results { padding: 16px 14px; color: #5a4a30; letter-spacing: normal; text-transform: none; }
.search-suggestions a { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px; color: #292315; font: 600 12px/1.3 var(--body); }
.search-suggestions a:hover { background: #f5ead3; }
.search-suggestions a span { flex: 0 0 78px; color: #a87920; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.search-show-more { width: 100%; border: 0; border-top: 1px solid #eadbbd; padding: 12px 14px; background: #f2e4c3; color: #60450d; cursor: pointer; font: 700 12px var(--body); text-align: left; }
.search-show-more:hover { background: #e8d29c; }

/* Search is prepared but intentionally hidden until the catalog needs it. */
.search-toggle,
.shop-search { display: none !important; }
.search-empty {
  width: 100%;
  margin: 8px 0;
  padding: 28px 20px;
  border: 1px solid #ded5c2;
  background: #fffdfa;
  color: #584c35;
  text-align: center;
}

/* Editorial, high-contrast serif treatment matching the supplied reference. */
.hero h1 {
  font-family: "Times New Roman MT Condensed", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 4.35vw, 58px);
  font-weight: 500;
  line-height: .89;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.crown-mark {
  display: inline-block;
  font-size: 2.6em;
  line-height: .5;
  vertical-align: -.22em;
}

/* A warm, ongoing invitation to interact without overwhelming the page. */
button,
.donate,
.product-grid a,
.feature-grid a,
.shop-product-card a,
.carousel-arrow,
.tabs button {
  animation: gold-button-glow 2.2s ease-in-out infinite;
}

.donate,
.product-grid a,
.feature-grid a,
.shop-product-card a {
  position: relative;
  overflow: hidden;
}

.donate::after,
.product-grid a::after,
.feature-grid a::after,
.shop-product-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 244, 196, .58) 50%, transparent 65%);
  transform: translateX(-140%);
  animation: gold-button-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gold-button-glow {
  0%, 100% { box-shadow: 0 2px 7px rgba(87, 56, 0, .26), 0 0 0 rgba(229, 181, 58, 0); }
  50% { box-shadow: 0 4px 14px rgba(102, 69, 3, .4), 0 0 18px rgba(232, 185, 61, .58); }
}

@keyframes gold-button-shine {
  0%, 45% { transform: translateX(-140%); }
  72%, 100% { transform: translateX(140%); }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .header-actions .cart-link,
  .donate,
  .product-grid a,
  .feature-grid a,
  .shop-product-card a,
  .carousel-arrow,
  .tabs button,
  .donate::after,
  .product-grid a::after,
  .feature-grid a::after,
  .shop-product-card a::after {
    animation: none;
  }
}

/* Keep the donation message to a balanced three lines on desktop widths. */
@media (min-width: 561px) {
  .hero-copy > p:not(.crown) {
    max-width: 580px;
  }
}

.feature-grid h3 {
  min-height: 42px;
}

@media (max-width: 560px) {
  .product-grid h3,
  .feature-grid h3 {
    font-size: 16px;
  }
}

/* Use the supplied campaign image as a full hero cover, with a readable text area. */
.hero {
  display: block;
  position: relative;
  min-height: 416px;
  background: #181711;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 12, 0.98) 0%, rgba(24, 22, 14, 0.92) 38%, rgba(24, 20, 12, 0.34) 63%, rgba(20, 17, 10, 0.06) 100%);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 46%;
  transform: translateX(-3%);
  z-index: 0;
  display: block;
  min-height: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: right bottom;
  filter: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 416px;
  width: min(47%, 610px);
}

@media (max-width: 850px) {
  .hero-copy { width: min(60%, 560px); }
  .hero-image { left: 42%; }
}

@media (max-width: 560px) {
  .brand-full { display: none; }
  .brand-short { display: inline; font: 700 16px var(--display); letter-spacing: .08em; }
  .hero { display: flex; min-height: 0; flex-direction: column; }
  .hero::after { display: none; }
  .hero-copy { width: 100%; min-height: 0; padding: 38px 20px 42px; background: linear-gradient(120deg, #171711, #292315); }
  .hero-image { display: none; }
  .hero h1 { font-size: clamp(39px, 11vw, 48px); }

  .mission-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 13px 8px;
  }

  .mission-strip p {
    min-width: 0;
    justify-content: center;
    gap: 6px;
    font-size: 0;
    white-space: nowrap;
  }

  .mission-strip span { font-size: 27px; }
  .mission-strip p::after { font-size: 10px; font-weight: 700; letter-spacing: .02em; }
  .mission-strip p:nth-child(1)::after { content: "APPAREL"; }
  .mission-strip p:nth-child(2)::after { content: "EMPOWER"; }
  .mission-strip p:nth-child(3)::after { content: "MISSION"; }
}

/* Keep the desktop hero composition stable as the viewport stretches. */
@media (min-width: 561px) {
  .hero-copy {
    width: min(48%, 600px);
  }

  .hero-image {
    left: auto;
    right: clamp(0px, 2vw, 30px);
    width: min(59%, 680px);
    transform: none;
  }
}

/* At tablet widths the campaign image becomes an enlarged backdrop, not a small side card. */
@media (min-width: 561px) and (max-width: 1024px) {
  .hero-image {
    inset: 0;
    width: auto;
    transform: none;
  }

  .hero-image img {
    object-fit: contain;
    object-position: right bottom;
    transform: none;
  }

  .hero-copy {
    width: min(67%, 510px);
  }
}

@media (min-width: 1025px) {
  .hero-copy {
    width: min(55%, 760px);
    padding-inline: clamp(38px, 4.5vw, 64px);
  }

  .hero-image img {
    transform: scale(1.07);
    transform-origin: right bottom;
  }
}

/* Ultra-wide displays: keep the campaign copy and artwork in one centered
   composition instead of pinning them to opposite viewport edges. */
@media (min-width: 1441px) {
  .hero {
    --hero-wide-gutter: max(0px, calc((100vw - 1800px) / 2));
  }

  .hero-copy {
    margin-left: var(--hero-wide-gutter);
  }

  .hero-image {
    right: var(--hero-wide-gutter);
    width: min(59%, 720px);
  }
}

/* Shop landing-page category carousel. Featured Bestsellers remains independent and unchanged. */
.tabs button {
  appearance: none;
  width: 100%;
  border: 0;
  border-right: 1px solid #dfd7c5;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 18px 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .05em;
}

.tabs button:last-child { border-right: 0; }
.tabs button.selected { color: #906a1e; font-weight: 700; border-bottom: 3px solid #9d741e; }
.catalog-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin:6px 0 14px; }
.catalog-heading h2 { margin:2px 0 0; font:700 clamp(28px,3vw,40px)/.92 var(--display); color:#352a16; }
.catalog-kicker { margin:0; color:#9b711d; font:700 10px var(--body); letter-spacing:.13em; text-transform:uppercase; }
.carousel-controls { display:flex; gap:8px; }
.carousel-arrow { width:38px; height:38px; border:1px solid #c5a25c; border-radius:50%; background:#fffaf0; color:#765516; font-size:21px; cursor:pointer; }
.carousel-arrow:hover { background:#a97918; color:#fff; }
.product-carousel { overflow:hidden; }
.product-carousel .product-grid { display:flex; gap:12px; overflow-x:auto; padding:2px 1px 8px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.product-carousel .product-grid::-webkit-scrollbar { display:none; }
.shop-product-card { flex:0 0 calc((100% - 60px) / 6); min-width:170px; display:flex; flex-direction:column; overflow:hidden; border:1px solid #ded5c2; background:#fffaf0; scroll-snap-align:start; }
.shop-product-card img { width:100%; aspect-ratio:1/1.22; object-fit:cover; object-position:center; background:#eee6d7; }
.shop-product-card div { display:flex; flex:1; flex-direction:column; padding:11px; }
.shop-product-card small { color:#a57218; font:700 9px var(--body); letter-spacing:.1em; text-transform:uppercase; }
.shop-product-card h3 { min-height:42px; margin:7px 0 11px; font:700 18px/1.04 var(--display); color:#193c2b; }
.shop-product-card a { margin-top:auto; padding:8px; border-radius:3px; background:linear-gradient(90deg,#936600,#b88718); color:#fff; text-align:center; font:700 11px var(--body); }
.product-grid.slide-next { animation:shop-slide-next .35s ease both; }
.product-grid.slide-prev { animation:shop-slide-prev .35s ease both; }
@keyframes shop-slide-next { from { opacity:.25; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes shop-slide-prev { from { opacity:.25; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }
@media(max-width:850px){.shop-product-card{flex-basis:calc((100% - 24px)/3)}.shop-product-card h3{font-size:17px}}
@media(max-width:560px){.catalog-heading{align-items:center}.catalog-heading h2{font-size:29px}.carousel-arrow{width:34px;height:34px}.shop-product-card{flex-basis:calc((100% - 10px)/2);min-width:0}.shop-product-card h3{font-size:16px}.tabs button{padding:13px 6px}.tabs{overflow:hidden}}

@media (min-width: 561px) and (max-width: 850px) {
  .site-header {
    padding-inline: 16px;
    gap: 10px;
  }

  .brand { font-size: 19px; }
  .brand img { width: 25px; height: 25px; }
  .site-header nav { gap: 12px; font-size: 11px; }
  .header-actions { gap: 6px; }
  .header-actions button { font-size: 19px; }
}
