/**
Theme Name: JAO NAI CHAN
Author: JAO NAI CHAN
Author URI: https://jaonaichan.com/contact
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jao-nai-chan
Template: astra
*/
/* ── ไอคอนหน้าเมนู "บัญชีของฉัน" ────────────────────────────────────────
   ติดที่ menu item ผ่าน class jnh-menu-account (ตั้งไว้ใน _menu_item_classes)

   ::before ต้องเป็น inline-block เอง ห้ามพึ่ง flex ของ <a>
   เพราะ Astra บังคับ .menu-link เป็น inline-block อยู่แล้ว (flex gap เลยไม่ทำงาน)
   และกล่อง inline จะไม่รับ width/height ไอคอนจะกลายเป็นขนาด 0 มองไม่เห็น

   ใช้ mask + currentColor ไอคอนจึงเปลี่ยนสีตามลิงก์เองรวมถึงตอน hover/active
   ขนาดผูกกับ em จึงสเกลตามฟอนต์ของเมนูทั้งบนมือถือและเดสก์ท็อป */
:root {
  --jnh-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.menu-item.jnh-menu-account > a::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-inline-end: .45em;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: var(--jnh-account-icon) no-repeat center / contain;
          mask: var(--jnh-account-icon) no-repeat center / contain;
}

/* ── แท็บเล็ต + มือถือ: header ──────────────────────────────────────────
   เลย์เอาต์: ปุ่มเมนู (ซ้าย) · โลโก้ (กลาง) · ตะกร้า (ขวา)
   การจัดวางมาจาก src/inc/helpers/07-mobile-header.php ไฟล์นี้คุมแค่หน้าตา
   ปุ่มสองข้างเป็นสี่เหลี่ยมมุมมนขนาดเท่ากัน โลโก้ตรงกลางจึงอยู่กลางจริง

   ไม่แตะ display ของ .ast-primary-header-bar (grid/flex ตาม breakpoint ของ Astra เอง)
   เพิ่มแค่ align-items ให้ของทั้งแถวอยู่กึ่งกลางแนวตั้ง */
#masthead .ast-primary-header-bar.main-header-bar {
  align-items: center;
}
/* Astra ให้ขอบข้าง ~7px บนมือถือ แต่ 0 บนแท็บเล็ต ปุ่มเลยชิดขอบจอ และป้ายจำนวนชิ้นบนตะกร้าโดนตัด
   selector ต้องแรงกว่า ".ast-header-break-point #masthead .ast-primary-header-bar.main-header-bar"
   ที่ Astra พิมพ์ inline จากค่า Customizer ไม่งั้นแพ้ */
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar.main-header-bar {
  padding-block: 8px;
  padding-inline: 16px;
}

#masthead .menu-toggle.main-header-menu-toggle,
#masthead .ast-mobile-header-wrap .ast-site-header-cart .cart-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background-color: var(--jn-primary, #54B435);
  color: var(--jn-on-primary, #fff);
  box-shadow: 0 4px 12px var(--jn-primary-shadow, rgba(84, 180, 53, .28));
  transition: background-color .18s ease, transform .12s ease;
}
#masthead .menu-toggle.main-header-menu-toggle:hover,
#masthead .menu-toggle.main-header-menu-toggle:focus,
#masthead .ast-mobile-header-wrap .ast-site-header-cart .cart-container:hover {
  background-color: var(--jn-primary-hover, #379237);
  color: var(--jn-on-primary, #fff);
}
#masthead .menu-toggle.main-header-menu-toggle:active,
#masthead .ast-mobile-header-wrap .ast-site-header-cart .cart-container:active {
  transform: scale(.95);
}

#masthead .menu-toggle.main-header-menu-toggle .mobile-menu-toggle-icon svg,
#masthead .menu-toggle.main-header-menu-toggle .astra-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ตะกร้า: ซ่อนยอดเงิน (฿0.00) เหลือแต่ไอคอนในปุ่ม — ตัวเลขจำนวนชิ้นยังอยู่ที่มุมไอคอนเหมือนเดิม */
#masthead .ast-mobile-header-wrap .ast-woo-header-cart-info-wrap {
  display: none;
}
#masthead .ast-mobile-header-wrap .ast-site-header-cart .ast-addon-cart-wrap {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
#masthead .ast-mobile-header-wrap .ast-site-header-cart .ast-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
