/* SHIMA SHOES — 2.2.0 final polish / footer builder / security release UI
   Loaded after storefront.css and polish-2.1.css. */

/* ---------- Fully customizable footer ---------- */
.shima-footer-v2 {
  --footer-accent: var(--shima-footer-accent, #087b43);
  position: relative;
  margin-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--footer-accent) 18%, #e5ece8);
  background:
    radial-gradient(circle at 92% 14%, color-mix(in srgb, var(--footer-accent) 7%, transparent) 0 110px, transparent 111px),
    linear-gradient(180deg, color-mix(in srgb, var(--shima-footer-bg, #fff) 96%, #eef8f2) 0%, var(--shima-footer-bg, #fff) 100%);
}
.shima-footer-v2::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--footer-accent) 28%, transparent) 18%, var(--footer-accent) 50%, color-mix(in srgb, var(--footer-accent) 28%, transparent) 82%, transparent);
  opacity: .34;
}
.shima-footer-v2-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding: 34px 0 30px;
  align-items: start;
}
.shima-footer-v2-brand,
.shima-footer-v2-links,
.shima-footer-v2-contact,
.shima-footer-v2-trust {
  min-width: 0;
}
.shima-footer-v2-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.shima-footer-v2-logo img,
.shima-footer-v2-brand > a img {
  width: min(var(--shima-footer-logo-width, 220px), 100%) !important;
  max-height: 92px;
  object-fit: contain;
  object-position: right center;
}
.shima-footer-v2-brand p {
  max-width: 370px;
  margin: 12px 0 0;
  color: var(--shima-footer-text, #3f5047);
  font-size: 12.5px;
  line-height: 2;
  font-weight: 800 !important;
}
.shima-footer-v2-grid h3,
.shima-footer-v2-grid h4 {
  margin: 0 0 13px;
  color: var(--shima-footer-heading, #12231a);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 900 !important;
}
.shima-footer-v2-social-wrap {
  margin-top: 15px;
}
.shima-footer-v2-social-wrap h4 {
  margin-bottom: 8px;
  font-size: 11.5px;
  color: var(--shima-footer-text, #3f5047);
}
.shima-footer-v2-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.shima-footer-v2-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--footer-accent) 18%, #dce8e1);
  border-radius: 12px;
  color: var(--footer-accent);
  background: color-mix(in srgb, var(--footer-accent) 5%, #fff);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.shima-footer-v2-social a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--footer-accent) 45%, #dce8e1);
  background: color-mix(in srgb, var(--footer-accent) 9%, #fff);
}
.shima-footer-v2-social svg {
  width: 17px !important;
  height: 17px !important;
}
.shima-footer-v2-links,
.shima-footer-v2-contact,
.shima-footer-v2-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.shima-footer-v2-links a,
.shima-footer-v2-contact a,
.shima-footer-v2-contact > div,
.shima-footer-v2-trust > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--shima-footer-text, #3f5047);
  font-size: 11.5px;
  line-height: 1.8;
  font-weight: 800 !important;
}
.shima-footer-v2-links a {
  position: relative;
  padding-right: 10px;
  transition: color .15s ease, transform .15s ease;
}
.shima-footer-v2-links a::before {
  content: "";
  position: absolute;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--footer-accent);
  opacity: .58;
}
.shima-footer-v2-links a:hover {
  color: var(--footer-accent);
  transform: translateX(-2px);
}
.shima-footer-v2-contact svg,
.shima-footer-v2-trust svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto;
  color: var(--footer-accent) !important;
}
.shima-footer-v2-trust > div {
  width: 100%;
  min-height: 34px;
  padding: 5px 0;
  border-bottom: 1px dashed #e2ebe5;
}
.shima-footer-v2-trust > div:last-child {
  border-bottom: 0;
}
.shima-footer-v2-bottom {
  border-top: 1px solid color-mix(in srgb, var(--footer-accent) 10%, #edf2ef);
  background: var(--shima-footer-bottom-bg, #f8fbf9) !important;
}
.shima-footer-v2-bottom > .shima-container {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--shima-footer-text, #3f5047);
  font-size: 10.5px;
  line-height: 1.8;
  font-weight: 800 !important;
}

/* User requirement: every textual element in the footer must be bold. */
.shima-footer-v2 p,
.shima-footer-v2 a,
.shima-footer-v2 span,
.shima-footer-v2 h1,
.shima-footer-v2 h2,
.shima-footer-v2 h3,
.shima-footer-v2 h4,
.shima-footer-v2 h5,
.shima-footer-v2 h6,
.shima-footer-v2 li,
.shima-footer-v2 div:not(.shima-container):not(.shima-footer-v2-grid):not(.shima-footer-v2-social) {
  font-weight: 800 !important;
}
.shima-footer-v2 strong,
.shima-footer-v2 b,
.shima-footer-v2 label,
.shima-footer-v2 button {
  font-weight: 900 !important;
}

/* Prevent blank/accidentally enabled step rows from visually producing orphan numbers. */
.shima-home2-step:empty { display: none !important; }

/* ---------- Admin footer builder ---------- */
.shima-admin-wrap .shima-admin-subcard {
  margin: 10px 0;
  padding: 0;
  border: 1px solid #e1e9e4;
  border-radius: 14px;
  background: #fbfdfc;
  box-shadow: none;
}
.shima-admin-wrap .shima-admin-subcard > header {
  border-bottom: 1px solid #e7eee9;
  background: #f6faf7;
}
.shima-admin-wrap input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #d6e2da;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.shima-admin-wrap .shima-footer-link-builder {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .shima-footer-v2-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .shima-footer-v2 {
    margin-top: 22px;
  }
  .shima-footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 0 24px;
    text-align: center;
  }
  .shima-footer-v2-brand,
  .shima-footer-v2-links,
  .shima-footer-v2-contact,
  .shima-footer-v2-trust {
    align-items: center;
  }
  .shima-footer-v2-brand p {
    margin-inline: auto;
    font-size: 11.5px;
  }
  .shima-footer-v2-logo img,
  .shima-footer-v2-brand > a img {
    object-position: center;
  }
  .shima-footer-v2-social {
    justify-content: center;
  }
  .shima-footer-v2-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px 12px;
  }
  .shima-footer-v2-links h3 {
    grid-column: 1/-1;
  }
  .shima-footer-v2-links a {
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #e4ede7;
    border-radius: 10px;
    background: rgba(255,255,255,.7);
  }
  .shima-footer-v2-links a::before { display:none; }
  .shima-footer-v2-contact > div,
  .shima-footer-v2-contact > a,
  .shima-footer-v2-trust > div {
    justify-content: center;
  }
  .shima-footer-v2-bottom > .shima-container {
    min-height: 62px;
    padding-block: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
    font-size: 9.8px;
  }
}


/* ==========================================================
   2.2.1 — Senior polish for homepage + product detail stability
   ========================================================== */

/* Product page: keep summary balanced and anchor assurance box at bottom */
.shima-product-page .shima-product-summary {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.shima-product-page .shima-product-summary .shima-product-badges,
.shima-product-page .shima-product-summary h1,
.shima-product-page .shima-product-summary .shima-summary-price,
.shima-product-page .shima-product-summary .shima-min-order,
.shima-product-page .shima-product-summary .shima-short-description,
.shima-product-page .shima-product-summary .shima-add-to-cart-wrap {
  flex-shrink: 0;
}
.shima-product-page .shima-short-description {
  max-width: 62ch;
  min-height: 96px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.shima-product-page .shima-add-to-cart-wrap {
  margin-top: 16px;
}
.shima-product-page .shima-product-assurance {
  margin-top: auto;
  flex-shrink: 0;
  border: 1px solid #dcece3;
  background: #f7fbf8;
}
.shima-product-page .shima-product-assurance > div {
  min-height: 86px;
  padding: 10px 12px;
  align-items: center;
}
.shima-product-page .shima-product-assurance span {
  justify-content: center;
}
.shima-product-page .shima-product-assurance strong {
  font-size: 14.5px;
  line-height: 1.55;
}
.shima-product-page .shima-product-assurance small {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 800;
  color: #52636a;
}

/* Homepage section rhythm */
.shima-home-v2 .shima-home2-section,
.shima-home-v2 .shima-home2-products-section,
.shima-home-v2 .shima-home2-benefit-strip,
.shima-home-v2 .shima-home2-banner,
.shima-home-v2 .shima-home2-steps {
  margin-top: 24px;
}
.shima-home-v2 .shima-home2-section-head {
  margin-bottom: 14px;
}
.shima-home-v2 .shima-home2-section-head h2 {
  font-size: 22px;
}
.shima-home-v2 .shima-home2-section-head p {
  font-size: 12.5px;
  color: #67756e;
}

/* Homepage category cards: stronger layout, no overlap, consistent CTA */
.shima-home-v2 .shima-home2-category-track {
  gap: 14px;
}
.shima-home-v2 .shima-home2-category {
  min-height: 152px;
  padding: 16px 18px;
  grid-template-columns: minmax(0, 1fr) 42%;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.shima-home-v2 .shima-home2-category-copy {
  min-width: 0;
  align-content: space-between;
  align-self: stretch;
  gap: 7px;
  text-align: right;
}
.shima-home-v2 .shima-home2-category-copy strong {
  font-size: 16px;
  line-height: 1.55;
}
.shima-home-v2 .shima-home2-category-copy small {
  min-height: 34px;
  font-size: 11.5px;
  line-height: 1.8;
}
.shima-home-v2 .shima-home2-category-copy b {
  margin-top: auto;
  font-size: 11px;
}
.shima-home-v2 .shima-home2-category-image {
  inset: 8px 0 8px auto;
  width: 46%;
}
.shima-home-v2 .shima-home2-category-image:before {
  width: 128px;
  height: 128px;
  background: rgba(255,255,255,.45);
}
.shima-home-v2 .shima-home2-category-image img {
  height: 128px !important;
}
.shima-home-v2 .shima-home2-category-fallback {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  color: #1f8c59;
  box-shadow: 0 8px 18px rgba(8,123,67,.10);
}
.shima-home-v2 .shima-home2-category-fallback svg {
  width: 32px !important;
  height: 32px !important;
}

/* Featured product cards: more premium proportions */
.shima-home-v2 .shima-home2-carousel-shell {
  min-width: 0;
}
.shima-home-v2 .shima-home2-product-track {
  align-items: stretch;
}
.shima-home-v2 .shima-home2-product-card {
  border-radius: 16px;
}
.shima-home-v2 .shima-home2-product-image {
  aspect-ratio: 1.1 / 1;
  margin: 7px;
  border-radius: 12px;
}
.shima-home-v2 .shima-home2-product-body {
  padding: 8px 12px 12px;
}
.shima-home-v2 .shima-home2-product-body h3 {
  min-height: 48px;
  font-size: 12.5px;
  line-height: 1.8;
}
.shima-home-v2 .shima-home2-price {
  margin-top: 7px;
  font-size: 10px;
}
.shima-home-v2 .shima-home2-price strong {
  font-size: 13px;
}
.shima-home-v2 .shima-home2-pack {
  font-size: 10px;
  font-weight: 700;
}
.shima-home-v2 .shima-home2-product-card .shima-btn {
  min-height: 38px;
  border-radius: 9px;
  font-size: 10.5px;
}
.shima-home-v2 .shima-home2-stock {
  font-size: 9px;
}

/* Better handling when there are few featured products */
.shima-home-v2 .shima-home2-count-1 .shima-home2-product-track {
  grid-template-columns: minmax(280px, 360px);
  justify-content: start;
}
.shima-home-v2 .shima-home2-count-2 .shima-home2-product-track {
  grid-template-columns: repeat(2, minmax(260px, 340px));
  justify-content: start;
}
.shima-home-v2 .shima-home2-count-3 .shima-home2-product-track {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

/* Benefit strip readability */
.shima-home-v2 .shima-home2-benefit-strip > div {
  min-height: 94px;
  gap: 12px;
}
.shima-home-v2 .shima-home2-benefit-strip strong {
  font-size: 12.5px;
}
.shima-home-v2 .shima-home2-benefit-strip small {
  font-size: 10.5px;
  font-weight: 800;
}

/* CTA banner and order steps polish */
.shima-home-v2 .shima-home2-banner {
  min-height: 124px;
  padding: 22px 24px;
  border-radius: 18px;
}
.shima-home-v2 .shima-home2-banner-copy h2 {
  font-size: 18px;
  line-height: 1.5;
}
.shima-home-v2 .shima-home2-banner-copy p,
.shima-home-v2 .shima-home2-banner-note {
  font-size: 12px;
  line-height: 1.8;
}
.shima-home-v2 .shima-home2-steps {
  padding: 18px 20px;
  border-radius: 18px;
}
.shima-home-v2 .shima-home2-step {
  min-height: 88px;
}
.shima-home-v2 .shima-home2-step strong {
  font-size: 13.5px;
}
.shima-home-v2 .shima-home2-step small {
  font-size: 11px;
  line-height: 1.8;
  font-weight: 800;
}

@media (max-width: 900px) {
  .shima-product-page .shima-product-summary {
    min-height: 0;
  }
  .shima-product-page .shima-short-description {
    min-height: 0;
    -webkit-line-clamp: 4;
  }
  .shima-home-v2 .shima-home2-section,
  .shima-home-v2 .shima-home2-products-section,
  .shima-home-v2 .shima-home2-benefit-strip,
  .shima-home-v2 .shima-home2-banner,
  .shima-home-v2 .shima-home2-steps {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .shima-product-page .shima-product-assurance {
    margin-top: 14px;
  }
  .shima-product-page .shima-product-assurance > div {
    min-height: 64px;
  }
  .shima-product-page .shima-product-assurance strong {
    font-size: 10.5px;
  }
  .shima-home-v2 .shima-home2-category {
    flex-basis: 230px;
    min-height: 126px;
    padding: 13px 14px;
  }
  .shima-home-v2 .shima-home2-category-copy strong {
    font-size: 14px;
  }
  .shima-home-v2 .shima-home2-category-copy small {
    min-height: 30px;
    font-size: 10px;
  }
  .shima-home-v2 .shima-home2-category-image img {
    height: 108px !important;
  }
  .shima-home-v2 .shima-home2-product-card {
    flex: 0 0 min(76vw, 255px);
  }
}
