/*
Theme Name: MOHO Grinder Black White
Theme URI: https://moho-grinder.com/
Author: Codex
Author URI: https://openai.com/
Description: ธีม WordPress สีดำขาวสำหรับร้านเครื่องบดกาแฟ MOHO พร้อมเมนูหลังบ้านสำหรับแก้หัวเว็บ ท้ายเว็บ หน้าแรก ข้อมูลติดต่อ และบัญชีแจ้งโอนเงิน
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moho-grinder
*/

:root {
  --moho-black: #050505;
  --moho-ink: #111111;
  --moho-gray: #606060;
  --moho-line: #e5e5e5;
  --moho-soft: #f6f6f6;
  --moho-white: #ffffff;
  --moho-radius: 4px;
  --moho-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--moho-white);
  color: var(--moho-ink);
  font-family: "Noto Sans Thai", Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

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

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

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

.moho-container {
  margin: 0 auto;
  max-width: var(--moho-max);
  padding: 0 20px;
}

.moho-topbar {
  background: var(--moho-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d4;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}

.moho-header {
  background: var(--moho-black);
  color: var(--moho-white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.moho-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  min-height: 82px;
  justify-content: space-between;
}

.moho-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  max-width: min(240px, 52vw);
}

.moho-brand__mark {
  align-items: center;
  background: var(--moho-white);
  color: var(--moho-black);
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.moho-brand__name {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.moho-custom-logo,
.custom-logo-link img,
.custom-logo,
.moho-header img {
  height: auto !important;
  max-height: 38px !important;
  max-width: 118px !important;
  object-fit: contain;
  width: auto !important;
}

.moho-brand__tagline {
  color: #a3a3a3;
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.moho-menu {
  align-items: center;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.moho-menu a {
  color: #d4d4d4;
  display: block;
  font-size: 14px;
  padding: 9px 12px;
  transition: 0.2s ease;
}

.moho-menu a:hover,
.moho-menu .current-menu-item > a {
  background: var(--moho-white);
  color: var(--moho-black);
}

.moho-mobile-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--moho-white);
  cursor: pointer;
  display: none;
  height: 42px;
  width: 42px;
}

.moho-button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  align-items: center;
  background: var(--moho-black);
  border: 1px solid var(--moho-black);
  border-radius: var(--moho-radius);
  color: var(--moho-white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  transition: 0.2s ease;
}

.moho-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #2a2a2a;
  color: var(--moho-white);
}

.moho-button--light {
  background: var(--moho-white);
  color: var(--moho-black);
}

.moho-button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--moho-white);
}

.moho-hero {
  background: var(--moho-black);
  color: var(--moho-white);
}

.moho-hero__grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 128px);
  padding-bottom: 48px;
  padding-top: 48px;
}

.moho-eyebrow {
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.moho-hero h1,
.moho-page-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.moho-hero p {
  color: #d4d4d4;
  font-size: 18px;
  margin: 22px 0 0;
  max-width: 720px;
}

.moho-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.moho-hero__media {
  position: relative;
}

.moho-hero__media img,
.moho-page-media img {
  aspect-ratio: 4 / 5;
  filter: grayscale(1);
  object-fit: cover;
  width: 100%;
}

.moho-stats {
  background: rgba(5, 5, 5, 0.9);
  bottom: 0;
  color: var(--moho-white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
}

.moho-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px;
}

.moho-stat:last-child {
  border-right: 0;
}

.moho-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.moho-stat span {
  color: #bdbdbd;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.moho-section {
  padding: 76px 0;
}

.moho-section--dark {
  background: #0a0a0a;
  color: var(--moho-white);
}

.moho-section-title {
  margin: 0 auto 40px;
  max-width: 780px;
  text-align: center;
}

.moho-section-title h2,
.moho-content h1,
.moho-content h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

.moho-section-title p {
  color: var(--moho-gray);
  margin: 18px 0 0;
}

.moho-section--dark .moho-section-title p {
  color: #bdbdbd;
}

.moho-highlight-grid,
.moho-product-grid {
  display: grid;
  gap: 18px;
}

.moho-highlight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.moho-highlight,
.moho-card {
  border: 1px solid var(--moho-line);
  padding: 24px;
}

.moho-highlight h3,
.moho-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.moho-highlight p,
.moho-card p {
  color: var(--moho-gray);
  margin: 0;
}

.moho-product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.moho-product {
  background: var(--moho-white);
  border: 1px solid var(--moho-line);
  color: var(--moho-ink);
}

.moho-section--dark .moho-product {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--moho-white);
}

.moho-product img {
  aspect-ratio: 1 / 1;
  filter: none;
  object-fit: cover;
  transition: 0.25s ease;
  width: 100%;
}

.moho-product:hover img {
  opacity: 0.92;
}

.moho-product__body {
  padding: 18px;
}

.moho-product__meta {
  align-items: center;
  color: var(--moho-gray);
  display: flex;
  font-size: 12px;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.moho-product h3 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  min-height: 54px;
}

.moho-product p {
  color: var(--moho-gray);
  font-size: 14px;
  margin: 12px 0 0;
}

.moho-page-hero {
  background: var(--moho-black);
  color: var(--moho-white);
  padding: 82px 0;
}

.moho-page-hero p {
  color: #d4d4d4;
  font-size: 18px;
  margin: 22px 0 0;
  max-width: 760px;
}

.moho-two-column {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1.1fr;
}

.moho-text-panel {
  align-self: center;
  border-bottom: 1px solid var(--moho-line);
  border-top: 1px solid var(--moho-line);
  font-size: 18px;
  padding: 36px 0;
}

.moho-form-grid {
  display: grid;
  gap: 16px;
}

.moho-form-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.moho-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.moho-field input,
.moho-field textarea,
.moho-field select,
.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce textarea,
.woocommerce select {
  border: 1px solid #cfcfcf;
  border-radius: var(--moho-radius);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.moho-field textarea {
  min-height: 160px;
}

.moho-notice {
  border: 1px solid var(--moho-ink);
  margin-bottom: 18px;
  padding: 12px 14px;
}

.moho-footer {
  background: var(--moho-black);
  color: var(--moho-white);
}

.moho-footer__grid {
  display: grid;
  gap: 42px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 56px;
  padding-top: 56px;
}

.moho-footer h2 {
  font-size: 34px;
  margin: 8px 0 16px;
}

.moho-footer p,
.moho-footer a {
  color: #d4d4d4;
}

.moho-footer ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.moho-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8f8f8f;
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

.moho-admin-wrap {
  max-width: 1180px;
}

.moho-admin-tabs {
  border-bottom: 1px solid #dcdcde;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.moho-admin-tab {
  background: #f0f0f1;
  border: 1px solid #dcdcde;
  border-bottom: 0;
  color: #1d2327;
  cursor: pointer;
  padding: 10px 14px;
}

.moho-admin-tab.is-active {
  background: #1d2327;
  color: #fff;
}

.moho-admin-panel {
  background: #fff;
  border: 1px solid #dcdcde;
  display: none;
  padding: 20px;
}

.moho-admin-panel.is-active {
  display: block;
}

.moho-admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moho-admin-grid label,
.moho-admin-full {
  display: grid;
  gap: 6px;
}

.moho-admin-full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .moho-mobile-toggle {
    display: inline-block;
  }

  .moho-nav {
    background: var(--moho-black);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    left: 0;
    padding: 12px 20px 20px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .moho-nav.is-open {
    display: block;
  }

  .moho-menu {
    display: grid;
  }

  .moho-hero__grid,
  .moho-two-column,
  .moho-footer__grid {
    grid-template-columns: 1fr;
  }

  .moho-highlight-grid,
  .moho-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .moho-container {
    padding: 0 16px;
  }

  .moho-custom-logo,
  .custom-logo-link img,
  .custom-logo,
  .moho-header img {
    max-height: 34px !important;
    max-width: 104px !important;
  }

  .moho-hero__grid {
    min-height: auto;
  }

  .moho-stats,
  .moho-highlight-grid,
  .moho-product-grid,
  .moho-form-grid--two,
  .moho-admin-grid {
    grid-template-columns: 1fr;
  }

  .moho-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
  }
}
