﻿/* footer.css — Footer & social links (shoop YuedpaoFooter clone) */

.tec-text-footer-heading {
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
}

.tec-text-footer-link {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-muted);
  transition: color 0.15s;
  text-decoration: none;
  display: block;
}
.tec-text-footer-link:hover { color: #000; }

@media (min-width: 768px) {
  .tec-text-footer-link { font-size: 13px; }
}

/* ── Footer shell ─────────────────────────────────────────────────────────── */
.shop-footer {
  flex-shrink: 0;
  background: var(--color-footer);
  padding: 2rem 1.25rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
}

/* Main layout: stack on phone, side-by-side on desktop */
.shop-footer__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1025px) {
  .shop-footer__layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

/* Brand block — centered on mobile (matches screenshot) */
.shop-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 1025px) {
  .shop-footer__brand {
    align-items: flex-start;
    width: auto;
    flex-shrink: 0;
  }
}

.shop-footer__logo-link {
  display: inline-block;
  text-decoration: none;
}

.shop-footer__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 1025px) {
  .shop-footer__block {
    align-items: flex-start;
    width: auto;
  }
}

.shop-footer__label {
  font-size: 0.75rem;
  line-height: 18px;
  color: #000;
}

.shop-footer__email {
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 21px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  word-break: break-all;
  text-align: center;
}

.shop-footer__email:hover {
  text-decoration: underline;
}

@media (min-width: 1025px) {
  .shop-footer__email {
    font-size: 1rem;
    line-height: 24px;
    text-align: left;
  }
}

/* Nav columns — 2×2 grid on phone: นโยบาย|ช่วยเหลือ / สนับสนุน|— */
.shop-footer__nav-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.5rem;
}

@media (min-width: 768px) {
  .shop-footer__nav-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem 2rem;
  }
}

@media (min-width: 1025px) {
  .shop-footer__nav-grid {
    width: auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2.5rem;
  }
}

.shop-footer__col {
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .shop-footer__col {
    width: auto;
    min-width: 200px;
  }
}

@media (min-width: 1025px) {
  .shop-footer__col {
    min-width: 140px;
  }
}

.shop-footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-footer__copyright {
  margin-top: 1.5rem;
  font-size: 10px;
  line-height: 15px;
  color: var(--color-copyright);
  text-align: center;
}

@media (min-width: 1025px) {
  .shop-footer__copyright {
    text-align: left;
  }
}

/* ── Social icon buttons ──────────────────────────────────────────────────── */
.site-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-social-links--footer {
  margin-top: 0.75rem;
}

@media (min-width: 1025px) {
  .site-social-links {
    justify-content: flex-start;
  }
}

.site-social-links__btn {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.15s;
  text-decoration: none;
}

.site-social-links__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.site-social-links__btn svg {
  width: 18px;
  height: 18px;
}

.site-social-links__btn--facebook:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.site-social-links__btn--line:hover {
  border-color: #06c755;
  background: #06c755;
  color: #fff;
}

.site-social-links__btn--instagram:hover {
  border-color: #e4405f;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  color: #fff;
}

.site-social-links__btn--linktree {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #000;
}

.site-social-links__btn--linktree img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-social-links__btn--linktree:hover {
  border-color: #43e660;
  background: #43e660;
  color: #000;
}
