/*
 * SellMyAppHub custom storefront styles.
 * Keep project-specific edits here so the base child theme stays easy to update.
 */

:root {
  --smh-ink: #172033;
  --smh-muted: #5f6b7a;
  --smh-line: #e6e9ef;
  --smh-surface: #f7f9fc;
  --smh-primary: #1f7aec;
  --smh-primary-dark: #155db5;
  --smh-accent: #12a87b;
}

body {
  background: #ffffff;
  color: var(--smh-ink);
}

a,
.entry-content p a,
.comment-content p a,
.woocommerce-LoopProduct-link {
  color: var(--smh-primary);
}

a:hover,
a:focus,
.entry-content p a:hover,
.entry-content p a:focus {
  color: var(--smh-primary-dark);
}

.site-header,
.main-header {
  border-bottom: 1px solid var(--smh-line);
}

.site-header .site-branding .site-title,
.site-header .site-branding .site-title a {
  color: var(--smh-ink);
  letter-spacing: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--smh-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  border-color: rgba(31, 122, 236, 0.28);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.10);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--smh-ink);
  font-size: 18px;
  line-height: 1.35;
  padding-left: 16px;
  padding-right: 16px;
}

.woocommerce ul.products li.product .price {
  color: var(--smh-accent);
  font-weight: 700;
  padding-left: 16px;
  padding-right: 16px;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 6px;
  background: var(--smh-primary);
  color: #ffffff;
  font-weight: 700;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--smh-primary-dark);
  color: #ffffff;
}

.woocommerce span.onsale {
  min-height: auto;
  min-width: auto;
  border-radius: 6px;
  background: var(--smh-accent);
  line-height: 1;
  padding: 8px 10px;
}

.product_meta,
.woocommerce-product-details__short-description {
  color: var(--smh-muted);
}

.woocommerce div.product form.cart {
  border-top: 1px solid var(--smh-line);
  border-bottom: 1px solid var(--smh-line);
  padding: 18px 0;
}

.sellmyapphub-digital-note {
  border: 1px solid var(--smh-line);
  border-radius: 8px;
  background: var(--smh-surface);
  color: var(--smh-muted);
  padding: 14px 16px;
}

@media (max-width: 767px) {
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
  }
}

.sellmyapphub-front {
  background: #f1f1f1;
  color: var(--smh-ink);
  font-family: 'Poppins', sans-serif;
}

.sellmyapphub-storefront-page .site-header,
.sellmyapphub-storefront-page .section-banner,
.sellmyapphub-storefront-page .bosa-header {
  display: none;
}

.smh-wrap {
  width: min(1092px, calc(100% - 32px));
  margin: 0 auto;
}

.smh-topline {
  background: #ffffff;
  border-bottom: 1px solid var(--smh-line);
  font-size: 13px;
}

.smh-topline .smh-wrap,
.smh-brandbar-grid,
.smh-categorybar-grid {
  display: flex;
  align-items: center;
}

.smh-topline .smh-wrap {
  justify-content: space-between;
  min-height: 46px;
  gap: 20px;
}

.smh-topline strong {
  color: #174da3;
  font-size: 12px;
  text-transform: uppercase;
}

.smh-small-nav,
.smh-main-cats,
.smh-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.smh-small-nav a,
.smh-main-cats a,
.smh-header-actions a {
  color: var(--smh-ink);
  font-weight: 600;
  text-transform: uppercase;
}

.smh-brandbar {
  background: #ffffff;
  padding: 28px 0 20px;
}

.smh-brandbar-grid {
  justify-content: space-between;
  gap: 28px;
}

.smh-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--smh-ink);
  min-width: 210px;
}

.smh-logo-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #174da3;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.smh-logo strong,
.smh-logo em {
  display: block;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.smh-logo strong {
  font-size: 25px;
}

.smh-logo em {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 6px;
}

.smh-ad-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-height: 66px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a9c6ef 0%, #f7d1d0 58%, #febd69 100%);
  color: var(--smh-ink);
  text-transform: uppercase;
}

.smh-ad-strip span {
  border: 3px solid #243044;
  padding: 8px 32px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
}

.smh-ad-strip strong {
  font-size: 12px;
}

.smh-header-actions {
  min-width: 180px;
  justify-content: flex-end;
}

.smh-categorybar {
  background: #ffffff;
  border-top: 1px solid var(--smh-line);
  border-bottom: 1px solid var(--smh-line);
}

.smh-categorybar-grid {
  min-height: 44px;
}

.smh-all-categories {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 24px;
  background: #174da3;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-main-cats {
  flex: 1;
  padding-left: 20px;
}

.smh-main-cats a {
  font-size: 13px;
}

.smh-search {
  display: flex;
  align-items: center;
  align-self: stretch;
  border-left: 1px solid var(--smh-line);
}

.smh-search input {
  width: 220px;
  height: 100%;
  border: 0;
  padding: 0 16px;
  color: var(--smh-muted);
}

.smh-search button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--smh-line);
  background: #ffffff;
  color: var(--smh-ink);
  padding: 0 18px;
  font-weight: 800;
}

.smh-hero {
  padding: 38px 0 22px;
}

.smh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 20px;
}

.smh-hero-main,
.smh-promo,
.smh-product-card,
.smh-benefit-grid {
  border-radius: 6px;
  overflow: hidden;
}

.smh-hero-main {
  display: block;
  min-height: 360px;
  background: #f8b21d;
}

.smh-hero-main img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.smh-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.smh-promo {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
}

.smh-promo::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border: 8px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.smh-promo strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.smh-promo span {
  color: #ffffff;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
}

.smh-promo-pink {
  background: #ef5f79;
}

.smh-promo-cyan {
  background: #09abc1;
}

.smh-promo-orange {
  background: #f6a83c;
}

.smh-promo-purple {
  background: #9a7194;
}

.smh-benefits {
  padding: 18px 0 30px;
}

.smh-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid var(--smh-line);
}

.smh-benefit-grid div {
  padding: 22px 24px;
  border-right: 1px solid var(--smh-line);
}

.smh-benefit-grid div:last-child {
  border-right: 0;
}

.smh-benefit-grid strong,
.smh-benefit-grid span {
  display: block;
}

.smh-benefit-grid strong {
  color: var(--smh-ink);
  font-size: 14px;
  text-transform: uppercase;
}

.smh-benefit-grid span {
  margin-top: 5px;
  color: var(--smh-muted);
  font-size: 13px;
}

.smh-products {
  padding: 4px 0 58px;
}

.smh-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #d2d5db;
  margin-bottom: 28px;
}

.smh-section-title h1 {
  position: relative;
  margin: 0;
  padding: 0 0 14px;
  color: #111111;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-section-title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 110px;
  height: 2px;
  background: #174da3;
}

.smh-section-title a {
  margin-bottom: 15px;
  color: var(--smh-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-product-section {
  margin-top: 34px;
}

.smh-product-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}

.smh-product-section-head span {
  color: #174da3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-product-section-head h2 {
  margin: 0;
  color: var(--smh-ink);
  font-size: 24px;
  font-weight: 800;
}

.smh-see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  background: #174da3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-see-all:hover,
.smh-see-all:focus {
  background: var(--smh-primary-dark);
  color: #ffffff;
}

.smh-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.smh-product-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 168px;
  background: #ffffff;
  border: 1px solid var(--smh-line);
  color: var(--smh-ink);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.smh-product-card:hover,
.smh-product-card:focus {
  color: var(--smh-ink);
  border-color: rgba(31, 122, 236, 0.28);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.13);
  transform: translateY(-2px);
}

.smh-product-art {
  display: grid;
  place-items: center;
  min-height: 168px;
  background: linear-gradient(145deg, #174da3, #2e92ff);
  position: relative;
}

.smh-product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smh-code-lines {
  width: 72px;
  height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
  position: relative;
}

.smh-code-lines::before,
.smh-code-lines::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 0 rgba(255, 255, 255, 0.85), 0 28px 0 rgba(255, 255, 255, 0.62);
}

.smh-code-lines::before {
  top: 13px;
}

.smh-code-lines::after {
  display: none;
}

.smh-product-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px;
}

.smh-product-body strong {
  color: var(--smh-ink);
  font-size: 17px;
  line-height: 1.25;
}

.smh-product-body em {
  margin-top: 8px;
  color: var(--smh-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.smh-product-price {
  margin-top: 14px;
  color: var(--smh-accent);
  font-size: 19px;
  font-weight: 800;
}

.smh-tone-pink .smh-product-art {
  background: linear-gradient(145deg, #ef5f79, #ff8b65);
}

.smh-tone-orange .smh-product-art {
  background: linear-gradient(145deg, #f6a83c, #ffd25e);
}

.smh-tone-green .smh-product-art {
  background: linear-gradient(145deg, #12a87b, #71d68b);
}

.smh-tone-purple .smh-product-art {
  background: linear-gradient(145deg, #8a6bc2, #c68ac9);
}

.sellmyapphub-product-page .site-header {
  border-bottom: 1px solid var(--smh-line);
}

.smh-single-product {
  background: #f1f1f1;
  padding: 34px 0 64px;
}

.smh-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--smh-muted);
  font-size: 13px;
}

.smh-product-breadcrumb a {
  color: #174da3;
  font-weight: 700;
}

.smh-product-breadcrumb strong {
  color: var(--smh-ink);
}

.smh-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.smh-product-media,
.smh-product-summary,
.smh-product-details-panel,
.smh-related-products {
  border: 1px solid var(--smh-line);
  border-radius: 8px;
  background: #ffffff;
}

.smh-product-media,
.smh-product-summary {
  padding: 22px;
}

.smh-product-main-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8b21d, #ffffff 56%, #0b66e4);
  overflow: hidden;
}

.smh-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smh-product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.smh-product-gallery span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--smh-line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.smh-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smh-gallery-placeholder {
  background: linear-gradient(145deg, #ef5f79, #ffb45c) !important;
}

.smh-gallery-placeholder-blue {
  background: linear-gradient(145deg, #174da3, #31b6e8) !important;
}

.smh-gallery-placeholder-green {
  background: linear-gradient(145deg, #12a87b, #71d68b) !important;
}

.smh-product-category,
.smh-product-category a {
  color: #174da3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-product-summary h1 {
  margin: 10px 0 14px;
  color: var(--smh-ink);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
}

.smh-product-price-large {
  color: var(--smh-accent);
  font-size: 28px;
  font-weight: 800;
}

.smh-product-short {
  margin-top: 16px;
  color: var(--smh-muted);
  font-size: 15px;
  line-height: 1.7;
}

.smh-product-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--smh-line);
}

.smh-product-actions form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.smh-product-actions .quantity input {
  min-height: 46px;
  border: 1px solid var(--smh-line);
  border-radius: 6px;
}

.smh-product-actions .single_add_to_cart_button {
  min-height: 46px;
  border-radius: 6px;
  background: #174da3;
  color: #ffffff;
  padding: 0 26px;
  font-weight: 800;
}

.smh-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.smh-product-facts div {
  border: 1px solid var(--smh-line);
  border-radius: 6px;
  background: var(--smh-surface);
  padding: 12px;
}

.smh-product-facts strong,
.smh-product-facts span {
  display: block;
}

.smh-product-facts strong {
  color: var(--smh-ink);
  font-size: 12px;
  text-transform: uppercase;
}

.smh-product-facts span {
  margin-top: 4px;
  color: var(--smh-muted);
  font-size: 12px;
}

.smh-product-details-panel,
.smh-related-products {
  margin-top: 28px;
  padding: 24px;
}

.smh-product-details-panel .smh-section-title,
.smh-related-products .smh-section-title {
  margin-bottom: 20px;
}

.smh-product-details-panel .smh-section-title h2,
.smh-related-products .smh-section-title h2 {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  color: var(--smh-ink);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.smh-product-details-panel .smh-section-title h2::after,
.smh-related-products .smh-section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 2px;
  background: #174da3;
}

.smh-product-details-content {
  color: var(--smh-muted);
  font-size: 15px;
  line-height: 1.8;
}

.smh-product-details-content p:last-child {
  margin-bottom: 0;
}

.smh-manual-payment-box,
.smh-code-delivery-email {
  border: 1px solid var(--smh-line);
  border-radius: 8px;
  background: var(--smh-surface);
  padding: 16px;
}

.smh-manual-payment-box {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.smh-manual-payment-box > div {
  display: grid;
  gap: 7px;
}

.smh-manual-payment-box strong {
  color: var(--smh-ink);
  font-size: 13px;
  text-transform: uppercase;
}

.smh-manual-payment-box code {
  display: block;
  max-width: 100%;
  border: 1px solid var(--smh-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--smh-ink);
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.smh-copy-payment {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  background: #174da3;
  color: #ffffff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.smh-payment-proof span,
.smh-proof-confirm span {
  color: var(--smh-muted);
  font-size: 13px;
  line-height: 1.5;
}

.smh-proof-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
}

.smh-proof-confirm input {
  margin-top: 5px;
}

.smh-code-delivery-email {
  margin: 18px 0;
}

@media (max-width: 980px) {
  .smh-hero-grid,
  .smh-product-grid,
  .smh-product-shell {
    grid-template-columns: 1fr;
  }

  .smh-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smh-search {
    display: none;
  }
}

@media (max-width: 760px) {
  .smh-topline .smh-wrap,
  .smh-brandbar-grid,
  .smh-categorybar-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .smh-topline .smh-wrap {
    padding: 12px 0;
  }

  .smh-small-nav,
  .smh-main-cats,
  .smh-header-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .smh-ad-strip,
  .smh-header-actions {
    display: none;
  }

  .smh-all-categories {
    justify-content: center;
    min-height: 48px;
  }

  .smh-main-cats {
    justify-content: center;
    padding: 14px 0;
  }

  .smh-hero-main,
  .smh-hero-main img {
    min-height: 240px;
  }

  .smh-promo-grid,
  .smh-benefit-grid {
    grid-template-columns: 1fr;
  }

  .smh-benefit-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--smh-line);
  }

  .smh-benefit-grid div:last-child {
    border-bottom: 0;
  }

  .smh-section-title,
  .smh-product-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .smh-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .smh-product-summary h1 {
    font-size: 28px;
  }

  .smh-product-facts {
    grid-template-columns: 1fr;
  }
}
