/* shop-theme.css — สไตล์ร่วมของทุกหน้า preview เทมเพลตร้านค้า (แปลจาก shop-navbar/shop-footer.component.scss + โครงสร้างจากทีมหน้าอื่น ๆ) */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Kanit:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Pridi:wght@300;400;500;600;700&family=Mitr:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&family=Athiti:wght@300;400;500;600;700&family=Taviraj:wght@300;400;500;600;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=Bai+Jamjuree:wght@300;400;500;600;700&family=Krub:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0A5C36;
  --secondary-color: #EF7C24;
  --accent-color: #DA291C;
  --font-family: 'Prompt';
  --nav-width: 1200px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

body.sh-page {
  margin: 0;
  font-family: var(--font-family), 'Prompt', sans-serif;
  color: #22303c;
  background: #fff;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

.sh-container {
  width: 100%;
  max-width: var(--content-width, 1200px);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* ── Typography ── */
.sh-page-title {
  font-family: var(--font-family), 'Prompt', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-color);
  margin: 0 0 0.6rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.sh-page-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 70px;
  height: 3px;
  background: var(--primary-color);
}

.sh-section-title {
  font-family: var(--font-family), 'Prompt', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-color);
  text-align: center;
  margin: 0 0 2rem;
}

.sh-section-subtitle {
  color: #6b7280;
  text-align: center;
  margin: -1.25rem 0 2rem;
}

/* ── Buttons ── */
.sh-btn-outline {
  display: inline-block;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sh-btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

.sh-btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.sh-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Navbar ── */
.sh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sh-navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0.6rem 0;
  position: relative;
}

.sh-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  padding: 0.4rem 0;
  max-width: var(--nav-width, 1200px);
}

.sh-navbar-inner.layout-center .sh-menu {
  margin: 0 auto;
}

.sh-navbar-inner.layout-right {
  flex-direction: row-reverse;
}

.sh-navbar-inner.layout-right .sh-menu {
  margin-right: auto;
  margin-left: 0;
}

.sh-navbar-inner.layout-stacked {
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sh-navbar-inner.layout-stacked .sh-logo {
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.sh-navbar-inner.layout-stacked .sh-menu {
  margin: 0;
  justify-content: center;
  width: 100%;
}

.sh-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.sh-logo-img {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
}

.sh-logo-mark {
  display: inline-block;
  background: var(--primary-color);
  border-radius: 50%;
}

.sh-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sh-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.sh-menu-item {
  position: relative;
}

.sh-menu-link-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.sh-nav-link {
  color: inherit;
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, font-weight 0.2s ease;
}

.sh-menu-item:hover .sh-nav-link,
.sh-menu-item.active .sh-nav-link {
  color: inherit;
  font-weight: 600;
  border-bottom-color: #ffffff;
}

.sh-caret {
  font-size: 0.8rem;
}

.sh-caret-toggle {
  background: transparent;
  border: none;
  padding: 0.4rem 0.2rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-caret-toggle:hover {
  color: var(--primary-color);
}

.sh-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 100;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
}

.sh-menu-item.has-dropdown.open .sh-dropdown {
  display: flex;
}

.sh-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #2d3748;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.sh-dropdown a:hover {
  background: #f7fafc;
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.sh-burger {
  display: none;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 961px) {
  .sh-menu-item.has-dropdown:hover .sh-dropdown {
    display: flex;
  }
}

@media (max-width: 960px) {
  .sh-burger {
    display: block;
  }

  .sh-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #22303c;
    border-top: 1px solid #edf2f7;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999;
  }

  .sh-menu.open {
    display: flex;
  }

  .sh-menu-link-row {
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #f7fafc;
  }

  .sh-nav-link {
    padding: 0.75rem 0;
    flex-grow: 1;
    color: #2d3748;
  }

  .sh-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: #f7fafc;
    padding: 0.25rem 0;
    margin-top: 0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }

  .sh-navbar-inner.layout-right,
  .sh-navbar-inner.layout-stacked {
    flex-direction: row;
    justify-content: space-between;
  }

  .sh-navbar-inner.layout-stacked .sh-logo {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .sh-logo-img {
    max-height: 32px !important;
    width: auto !important;
  }

  .sh-logo-text {
    font-size: 15px !important;
  }
}

/* ── Hero slideshow ── */
.sh-hero {
  position: relative;
  height: 72vh;
  min-height: 420px;
  overflow: hidden;
}

.sh-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.sh-hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.sh-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.sh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #fff;
}

.sh-hero-slide.layout-left .sh-hero-content {
  margin: 0 0 0 8vw;
  text-align: left;
}

.sh-hero-slide.layout-right .sh-hero-content {
  margin: 0 8vw 0 auto;
  text-align: right;
}

.sh-hero-title {
  font-family: var(--font-family), 'Prompt', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.sh-hero-sub {
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  opacity: 0.92;
}

.sh-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.sh-hero-arrow--prev {
  left: 1.5rem;
}

.sh-hero-arrow--next {
  right: 1.5rem;
}

.sh-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}

.sh-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.sh-hero-dot.active {
  background: #fff;
}

/* ── Generic content page wrapper ── */
.sh-page-header {
  padding: 3rem 0 2.25rem;
  background: #f8fafc;
  text-align: center;
}

.sh-breadcrumb,
.sh-breadcrumbs {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.sh-breadcrumb a,
.sh-breadcrumbs a {
  color: var(--primary-color, #2563eb);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.sh-breadcrumb a:hover,
.sh-breadcrumbs a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.sh-section {
  padding: 4rem 0;
}

/* ── Footer ── */
.sh-footer {
  background: #1e293b;
  color: #fff;
  padding: 4.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.sh-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.sh-footer-top.sh-footer-top-reverse .sh-footer-brand-col {
  order: 3;
}

.sh-footer-top.sh-footer-top-reverse .sh-footer-links-col {
  order: 2;
}

.sh-footer-top.sh-footer-top-reverse .sh-footer-contact-col {
  order: 1;
}

.sh-footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1 1 360px;
  max-width: 520px;
}

.sh-footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.sh-footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sh-footer-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sh-footer-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
}

.sh-footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sh-footer-links-col {
  flex: 0 1 200px;
}

.sh-footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sh-footer-links-list a {
  opacity: 0.85;
  font-size: 0.85rem;
  display: inline-block;
  transition: all 0.2s ease;
}

.sh-footer-links-list a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.sh-footer-contact-col {
  flex: 0 1 320px;
}

.sh-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sh-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.5;
}

.sh-footer-contact-item .material-icons {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: 0.05rem;
}

.sh-footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 0 2rem;
}

.sh-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sh-footer-copy {
  font-size: 0.82rem;
  opacity: 0.75;
  margin: 0;
}

.sh-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: var(--primary-color);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.sh-back-to-top:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .sh-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .sh-footer-top {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .sh-footer-brand-col {
    gap: 0.75rem;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .sh-footer-col-title {
    margin: 0 0 0.75rem;
  }

  .sh-footer-links-list,
  .sh-footer-contact-list {
    gap: 0.5rem;
  }

  .sh-footer-brand-col,
  .sh-footer-links-col,
  .sh-footer-contact-col {
    max-width: 100%;
  }

  .sh-footer-divider {
    margin: 0 0 1.25rem;
  }

  .sh-back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ── Lightbox (ใช้ร่วมกันในหน้าแกลเลอรี/สินค้า) ── */
.sh-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.sh-lightbox img {
  max-width: 100%;
  max-height: 90vh;
}

.sh-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.sh-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sh-lightbox-prev {
  left: 1.5rem;
}

.sh-lightbox-next {
  right: 1.5rem;
}

.sh-lightbox-count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .sh-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .sh-lightbox-prev {
    left: 0.5rem;
  }

  .sh-lightbox-next {
    right: 0.5rem;
  }
}