body.post-type-archive-product .store-main {
  padding-top: 40px;
  padding-bottom: 60px;
}

body.woocommerce-shop .store-main h1.page-title {
  margin-bottom: 22px;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: .08em;
}

body.woocommerce-shop ul.products {
  max-width: 960px;
  margin: 34px auto 0;
  gap: 26px;
  align-items: stretch;
}

body.woocommerce-shop ul.products li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.woocommerce-shop ul.products li.product:hover {
  border-color: transparent;
  box-shadow: none;
}

body.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link {
  width: 100%;
}

body.woocommerce-shop ul.products li.product a img {
  margin-bottom: 16px;
  border-radius: 14px;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.3;
  padding-inline: 8px;
}

body.woocommerce-shop ul.products li.product .price {
  margin: 8px 0 18px;
  color: #171d3e;
  font-size: .95rem;
}

body.woocommerce-shop ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 44px;
  border-radius: 999px !important;
  border: 1px solid #171d3e !important;
  padding: 13px 25px !important;
  background: linear-gradient(135deg, #353478, #171d3e) !important;
  box-shadow: 0 5px 12px #171d3e24 !important;
  font-size: 11px !important;
  letter-spacing: .09em !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.woocommerce-shop ul.products li.product .button:hover {
  transform: translateY(-2px);
  background: #171d3e !important;
  box-shadow: 0 8px 16px #171d3e30 !important;
}

body.woocommerce-shop ul.products li.product .button:focus-visible {
  outline: 2px solid #171d3e;
  outline-offset: 4px;
}

.site-footer .site-footer-inner {
  justify-content: flex-start;
  min-height: 43px;
  padding-block: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer .footer-brand {
  display: none;
}

@media (max-width: 820px) {
  body.woocommerce-shop ul.products {
    max-width: 340px;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-shop ul.products li.product .button {
    transition: none;
  }
}

/* Compact offer and branded sorting control. */
body.woocommerce-shop .promo-banner { padding-block: 12px; }
body.woocommerce-shop .promo-inner { gap: 12px; }
body.woocommerce-shop .promo-text { font-size: clamp(1rem, 1.65vw, 1.3rem); }
body.woocommerce-shop .promo-badge { padding: 5px 11px; font-size: 9px; }
body.woocommerce-shop .woocommerce-ordering select {
  background-color: #353478;
  color: #eef0fc;
  border: 1px solid #353478;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 14px;
  color-scheme: dark;
}
body.woocommerce-shop .woocommerce-ordering select option { background: #353478; color: #eef0fc; font: inherit; }
body.woocommerce-shop .woocommerce-ordering select:focus-visible { outline: 2px solid #171d3e; outline-offset: 3px; }
@media (max-width: 600px) {
  body.woocommerce-shop .promo-banner { padding-block: 10px; }
  body.woocommerce-shop .promo-inner { gap: 7px; }
  body.woocommerce-shop .promo-text { font-size: 1rem; }
}

/* Page shell keeps the footer after long content and at the viewport edge on short pages. */
body:not(.home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
body:not(.home) > .site-header,
body:not(.home) > .site-footer { flex-shrink: 0; }
body:not(.home) > main { flex: 1 0 auto; }
body:not(.home) > .site-footer { margin-top: auto; }

/* The theme's narrow article column is unsuitable for the cart block. */
body.woocommerce-cart .page-content { width: 100%; max-width: 1100px; margin-inline: auto; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { text-align: center; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-buttons { justify-content: center; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 24px auto 0;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  color: #171d3e;
  font-weight: 600;
  margin-top: 12px;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link { text-decoration: none; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price { margin: 10px 0 16px; }

/* Override article-link colors for both Gutenberg and WooCommerce cart buttons. */
body.woocommerce-cart .page-content .wp-block-button__link,
body.woocommerce-cart .page-content a.wc-block-cart__submit-button,
body.woocommerce-cart .page-content a.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #353478 !important;
  color: #fff !important;
  border: 1px solid #353478 !important;
  border-radius: 0 !important;
  padding: 13px 21px !important;
  font: 600 12px/1.2 "Inter", sans-serif !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: none !important;
  min-height: 44px;
}
body.woocommerce-cart .page-content .wp-block-button__link:hover,
body.woocommerce-cart .page-content a.wc-block-cart__submit-button:hover,
body.woocommerce-cart .page-content a.checkout-button:hover { background: #171d3e !important; }
body.woocommerce-cart .page-content .wp-block-button__link:focus-visible,
body.woocommerce-cart .page-content a.wc-block-cart__submit-button:focus-visible { outline: 2px solid #171d3e; outline-offset: 4px; }
body.woocommerce-cart .page-content .wc-block-cart__submit-container { justify-content: center; }
body.woocommerce-cart .page-content a.wc-block-cart__submit-button { width: auto; min-width: 230px; margin-inline: auto; }
body.woocommerce-cart .page-content .wc-block-cart__submit-button .wc-block-components-button__text { color: inherit; text-decoration: none; }
@media (max-width: 600px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products { grid-template-columns: minmax(0, 300px); gap: 32px; }
  body.woocommerce-cart .page-content a.wc-block-cart__submit-button { max-width: 100%; min-width: 0; width: 100%; }
}

/* Match the shop's premium buttons within the empty-cart recommendations. */
body.woocommerce-cart .page-content .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
body.woocommerce-cart .page-content a.wc-block-cart__submit-button,
body.woocommerce-cart .page-content a.checkout-button {
  border-radius: 999px !important;
  border: 1px solid #171d3e !important;
  padding: 13px 25px !important;
  background: linear-gradient(135deg, #353478, #171d3e) !important;
  color: #fff !important;
  box-shadow: 0 5px 12px #171d3e24 !important;
  font-size: 11px !important;
  letter-spacing: .09em !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.woocommerce-cart .page-content .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover,
body.woocommerce-cart .page-content a.wc-block-cart__submit-button:hover,
body.woocommerce-cart .page-content a.checkout-button:hover {
  transform: translateY(-2px);
  background: #171d3e !important;
  box-shadow: 0 8px 16px #171d3e30 !important;
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .page-content .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
body.woocommerce-cart .page-content a.wc-block-cart__submit-button,
body.woocommerce-cart .page-content a.checkout-button { transition: none; }
}

/* Legal links remain together below the copyright on small screens. */
.site-footer .site-footer-inner { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; }
.site-footer .rxp-footer-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-left:auto; }
.site-footer .rxp-footer-links a { color:inherit; font:inherit; text-underline-offset:3px; }
.site-footer .rxp-footer-links a:hover { text-decoration:underline; }
@media(max-width:767px) {
  .site-footer .site-footer-inner { flex-direction:column; justify-content:center; text-align:center; gap:6px; padding-block:12px; }
  .site-footer .rxp-footer-copyright { width:100%; font-size:12px; line-height:1.5; }
  .site-footer .rxp-footer-links { margin-left:0; justify-content:center; font-size:12px; }
}
