/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */



/* -----------------------------------------NUT---------------------------------------------------------------- */

/* ——— หน้าสินค้าเดี่ยว ——— */
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: #ffd54f;            /* สีของราคาลด */
  text-decoration: none;     /* เอาเส้นออก (ปกติไม่มีใน ins อยู่แล้ว) */
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: #b38b6d;            /* สีราคาปกติที่ถูกขีดฆ่า */
  opacity: 0.8;
}

/* ——— หน้าแบบรายการ/หน้ารวมสินค้า ——— */
.woocommerce ul.products li.product .price ins {
  color: #ffd54f;            /* สีราคาลดในการ์ดสินค้า */
}
.woocommerce ul.products li.product .price del {
  color: #b38b6d;
  opacity: 0.8;
}

/* ——— สำหรับธีม Block (Gutenberg Product Price block) ——— */
.wp-block-woocommerce-product-price .wc-block-components-product-price ins,
.wc-block-grid__product-price ins {
  color: #ffd54f;
}

.wp-block-woocommerce-product-price .wc-block-components-product-price del,
.wc-block-grid__product-price del {
  color: #b38b6d;
  opacity: 0.8;
}

/* ถ้าต้องการเปลี่ยนเฉพาะตัวเลข ไม่รวมสัญลักษณ์สกุลเงิน */
.price ins .woocommerce-Price-amount { color: #ffd54f; }
.price del .woocommerce-Price-amount { color: #b38b6d; }

/* ป้าย On Sale */
.woocommerce span.onsale {
  background: #ffd54f;
  color: #3d260f;
}

/* จอ PC (ตั้งแต่ 1024px ขึ้นไป) */
@media (min-width: 1024px) {
  .my-element {
    height: 100vw; /* สูงเท่ากับความกว้างของ viewport */
  }
}

/* จอมือถือ (ต่ำกว่า 1024px) */
@media (max-width: 1023px) {
  .my-element {
    height: 0%;
  }
}


.product-tags-top a {
  color: #fff  !important;
  margin-right: 5px;
}
.product-tags-top {
  font-size: 14px;
  color: #fff   !important;
}
.line-height {
  line-height: 26px !important;
	 letter-spacing: 0.5px;
}
nf-section {
	display: none  !important;
}
.woocommerce {
	margin:0px;
	padding:0px;
}
.product-tags-top {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.product-tags-top a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 5px;
}
.product-tags-top a:hover {
    text-decoration: underline;
}

.wc-block-components-product-sku {
  display: block;
  overflow-wrap: break-word;
  text-align: center;
}

.nf-form-content input[type="submit"]{
    background: #d4af37;
    border: 0;
    color: #0d0d0d;
    transition: all .5s;
    border-radius: 15px;
    width: 150px;

    /* ฟอนต์ */
    font-family: 'Niramit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 25px;
}
.nf-form-content input[type="submit"]:hover{
		background: #b59630 !important;
		color: #0d0d0d !important;
		transition: all .5s;
	cursor: pointer;
}
.nf-field-element{
	text-align: center;	
}

.hover-switch-icon {
  position: relative;
  display: inline-block;
}

.hover-switch-icon img.icon-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-switch-icon:hover img.icon-hover {
  opacity: 1;
}

.hover-switch-icon:hover img.icon-default {
  opacity: 0;
}



.wp-block-template-part {
  margin-block-start: 0 !important;
}

.ellipsis-2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.5em;
  height: 3em;                 /* ล็อคความสูงให้เท่ากับ 2 บรรทัด */
}

.ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* แสดงแค่ 2 บรรทัด */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ellipsis-3 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.5em;
  height: 4.5em;                 /* ล็อคความสูงให้เท่ากับ 2 บรรทัด */
}

.ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* แสดงแค่ 2 บรรทัด */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.display-none{
	display: none  !important;
}
.wp-block-woocommerce-product-button{
	display: none  !important;
}

.wp-block-woocommerce-add-to-cart-form {
    display: none !important;
}
.has-fallback-image {
  background-color: #000;     /* พื้นหลังสีดำ */
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;       /* รักษาสัดส่วน (อัตราส่วนภาพ) */
  position: relative;
  overflow: hidden;
}

.has-fallback-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ถ้าไม่มีรูป featured image */
.has-fallback-image:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;   /* สีพื้น fallback */
}




/* //----------------------------------------------------------------------------------------------------------- */









a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
