/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

 /* ========================================
   PRODUCT CARDS & VARIATIONS
   ======================================== */

   [data-products] .product {
    background-color: var(--theme-palette-color-6);
    border-radius: 16px;
	border: solid 1px var(--theme-palette-color-5);   
}

[data-products] .product .ct-card-variation-swatches {
    position: relative;
}

:is([data-swatches-type=color],[data-swatches-type=image],[data-swatches-type=mixed]) .ct-swatch {
    border-width: 1px !important;
}

[data-products] figure {
    position: unset !important;
}

.ct-card-variation-swatches .variations {
    position: absolute;
    top: -45px;
    left: 12px;
}

:is([data-swatches-type=color],[data-swatches-type=image],[data-swatches-type=mixed]) .ct-swatch {
	border-width:1px;
  	border-radius:0;
}

/* ========================================
   BADGES & SALE PRICES
   ======================================== */

.onsale, 
.out-of-stock-badge, 
[class*=ct-woo-badge-] {
    height: unset !important;
    min-width: unset !important;
}

.product .ct-woo-badges span:not(:first-child) {
    display: none !important;
}

@media (max-width: 689.98px) {
    .products .sale-price {
        flex-wrap: nowrap !important;
    }
    .products .sale-price del{
        font-size: 70% !important;
    }
    .products .p-card-price .sale-price{
        font-size:14px !important;
    }
}

/* ========================================
   PRODUCT TITLES
   ======================================== */

.p-card-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* ========================================
   CARD EXTRA ACTIONS
   ======================================== */

.ct-woo-card-extra[data-type=type-1] {
    flex-direction: row !important;
    top: unset !important;
    gap: 6px !important;
    bottom: 16px !important;
    right: 12px !important;
}

.ct-woo-card-extra[data-type=type-1] .ct-button {
    width: 18px !important;
    min-height: 18px !important;
}

/* ========================================
   QUICK VIEW BUTTON ICON
   ======================================== */

/* ซ่อน SVG เดิมของปุ่ม Quick View */
.ct-open-quick-view .ct-icon-container svg:first-child, 
.ct-open-quick-view .ct-icon-container .ct-button-loader {
    display: none;
}

/* แทนที่ด้วยไอคอนรถเข็นแบบใหม่ */
.ct-open-quick-view .ct-icon-container::before {
    content: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 122.9 107.5'%3E%3Cg%3E%3Cpath d='M3.9,7.9C1.8,7.9,0,6.1,0,3.9C0,1.8,1.8,0,3.9,0h10.2c0.1,0,0.3,0,0.4,0c3.6,0.1,6.8,0.8,9.5,2.5c3,1.9,5.2,4.8,6.4,9.1 c0,0.1,0,0.2,0.1,0.3l1,4H119c2.2,0,3.9,1.8,3.9,3.9c0,0.4-0.1,0.8-0.2,1.2l-10.2,41.1c-0.4,1.8-2,3-3.8,3v0H44.7 c1.4,5.2,2.8,8,4.7,9.3c2.3,1.5,6.3,1.6,13,1.5h0.1v0h45.2c2.2,0,3.9,1.8,3.9,3.9c0,2.2-1.8,3.9-3.9,3.9H62.5v0 c-8.3,0.1-13.4-0.1-17.5-2.8c-4.2-2.8-6.4-7.6-8.6-16.3l0,0L23,13.9c0-0.1,0-0.1-0.1-0.2c-0.6-2.2-1.6-3.7-3-4.5 c-1.4-0.9-3.3-1.3-5.5-1.3c-0.1,0-0.2,0-0.3,0H3.9L3.9,7.9z M96,88.3c5.3,0,9.6,4.3,9.6,9.6c0,5.3-4.3,9.6-9.6,9.6 c-5.3,0-9.6-4.3-9.6-9.6C86.4,92.6,90.7,88.3,96,88.3L96,88.3z M53.9,88.3c5.3,0,9.6,4.3,9.6,9.6c0,5.3-4.3,9.6-9.6,9.6 c-5.3,0-9.6-4.3-9.6-9.6C44.3,92.6,48.6,88.3,53.9,88.3L53.9,88.3z M33.7,23.7l8.9,33.5h63.1l8.3-33.5H33.7L33.7,23.7z'/%3E%3C/g%3E%3C/svg%3E");
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.ct-quick-view-content .flexy-pills {
    display: none !important;
}

.ct-quick-view-card .entry-summary .ct-quick-more {
    height: 40px !important;
}

.ct-quick-view-content .product_title {
    line-height: 1.2;
    margin-bottom: 5px !important;
}

.ct-quick-view-card .entry-summary :where(form.cart,.product_meta,.ct-product-additional-actions) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;    
}


/* ========================================
   QUICK VIEW CARD
   ======================================== */

.ct-quick-view-card .entry-summary .price {
    margin-bottom: 15px !important;
}

.ct-quick-view-card .ct-product-additional-actions, 
.ct-quick-view-card .product_meta, 
.ct-quick-view-card .entry-summary .woocommerce-product-details__short-description, 
.ct-quick-view-content h1.product_title, 
.ct-quick-view-content p.price, 
.ct-quick-view-content .woobt-wrap, 
.ct-quick-view-content .quantity {
    display: none !important;
}

.ct-quick-view-card .entry-summary .ct-quick-more {
    min-height: unset;
    margin-top: var(--product-element-spacing, 25px);     
}

.ct-quick-view-card .ct-media-container img, 
.ct-quick-view-card .ct-media-container picture {
    aspect-ratio: 1/1 !important;
}

/* ========================================
   CART ACTIONS
   ======================================== */

.ct-cart-actions .quantity {
    display: none;
}

.ct-cart-actions .added_to_cart {
    display: none !important;
}

/* ========================================
   VARIATIONS & PRICING
   ======================================== */

/* ซ่อนราคา variation ที่ WooCommerce แสดง */
.woocommerce-variation-price, 
.woocommerce-variation-availability, 
.reset_variations{
    display: none !important;
}

form.variations_form .single_variation:has(*:not(:empty)) {
    margin: 0 !important;
}

/* ========================================
   PRODUCT ADDITIONAL INFO
   ======================================== */

.ct-product-additional-info ul li svg {
    fill: var(--theme-palette-color-3) !important;
}

/* ========================================
   ENTRY SUMMARY
   ======================================== */

.entry-summary {
    position: relative;
}

.entry-summary .ct-product-additional-actions {
    position: absolute !important;
    top: 5px;
    right: 12px;
}

.entry-summary .ct-product-additional-actions .ct-icon-container svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

[data-prefix="product"] .entry-header .ct-breadcrumbs {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ========================================
   FILTER PANEL
   ======================================== */

.woo-listing-top .ct-toggle-filter-panel {
    border-radius: 30px !important;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 999.98px) {
    body.single-product .ct-stacked-gallery-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.125;
    }

    [data-prefix="product"] .entry-header .ct-breadcrumbs {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    body.single-product .woocommerce-product-gallery {
        width: 100vw !important;
        margin-left: calc(50% - 50vw); /* ดึงออกซ้าย */
        margin-right: calc(50% - 50vw); /* ดึงออกขวา */
        margin-bottom: 25px !important;
    }

    body.single-product .ct-stacked-gallery-container .ct-media-container {
        flex: 0 0 auto;
        scroll-snap-align: center;
        width: 70%;
        border-radius: 0;
    }
    
    body.single-product .ct-stacked-gallery-container .ct-media-container img {
        width: 100%;
    }

    /* ซ่อน scrollbar (optional) */
    body.single-product .ct-stacked-gallery-container::-webkit-scrollbar {
        display: none;
    }
}

/* ========================================
   FILTER & FLOAT BAR
   ======================================== */


#woo-filters-panel[data-behaviour*="side"], 
#woo-cart-panel, 
.ct-panel-content{
	-webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);  
}

.ct-drawer-canvas .ct-drawer-inner {
	bottom: 40px !important;
}

.ct-floating-bar {
    width: 600px;
    border-radius: 60px;
    padding: 20px;
    margin: 0px auto 25px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);  
}

.ct-floating-bar img {
  	border-radius: 6px !important;
}

.ct-floating-bar .product-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;  
}

@media (max-width: 689.98px) {
  .ct-drawer-canvas[data-floating-bar=yes] .ct-floating-bar {
      width: 90vw;
  }
}

/* ========================================
   PRODUCT TAB
   ======================================== */


.woocommerce div.product div.woocommerce-tabs ul.tabs li.active:before {
    display: none;
}

.woocommerce-tabs.wc-tabs-wrapper img {
    width: 100%;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li.active {
    background-color: var(--theme-palette-color-2);
    border-radius: 30px;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li a {
    padding: 10px 20px;
    line-height: 0.2em !important;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs {
    padding-bottom: 15px;
    flex-wrap: nowrap !important;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;    
    flex-direction:row!important;
}

/* ซ่อน scrollbar (optional) */
.woocommerce div.product div.woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-top: none!important;
}

.np-option-price {
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .5rem;
    padding-right: .5rem;
    background-color: #dbeafe;
    color: #1c4ad9;
    line-height: 15px;
    border-radius: .5rem;
}

/* ========================================
   WPC
   ======================================== */

.woobt-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 0.9rem;    
}

.woobt-products .woobt-product .woobt-thumb img {
    border-radius: 6px;
}

.woobt-summary {
    margin: 25px 0;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.woobt-wrap .woobt-text, .woobt-wrap .woobt-products {
  	margin:0;
}

/* ซ่อน checkbox จริง */
.woobt-checkbox {
  display: none;
}

/* ปุ่มสไตล์ติ๊กถูก (checkbox) */
.woobt-choose {
  position: relative;
  display: inline-block;
}

.woobt-choose .checkmark {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  color: #d1d5db;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.woobt-checkbox:checked + .checkmark {
  background-color: var(--theme-palette-color-2);
  border-color: var(--theme-palette-color-2);
  color: #fff;
}

.woobt-products .woobt-product .woobt-price {
    font-size: 1rem;
}

/* ราคาก่อนลดของสินค้าในชุด — ขีดฆ่าไว้ด้านบน
   เดิมบรรทัดนี้ซ่อนราคาก่อนลดไว้ (display:none)
   แก้โดยฟรายเดย์ 3 ส.ค. 2026 ตามที่พี่บอมบ์สั่ง */
/* วางราคาก่อนลดไว้บรรทัดบน ราคาจริงไว้ล่าง
   เดิมเรียงแนวนอนแล้วตกบรรทัดเองเมื่อราคายาว ทำให้ลำดับสลับ */
.woobt-products .woobt-product .woobt-price .sale-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.woobt-products .woobt-product .woobt-price del {
    display: block;
    order: -1;
    opacity: .55;
    font-size: .85em;
    margin-bottom: 2px;
}

/* ไอคอนติ๊กถูก แสดงทั้งสองสถานะ ต่างกันแค่สี (เทาจาง = ยังไม่เลือก, วงกลมทึบ = เลือกแล้ว) */
.woobt-checkbox + .checkmark::before {
    content: '\2713';
    line-height: 1;
}

/* ========================================
   BUNDLE — หัวข้อ + กล่องแยกจากสินค้าหลัก
   ======================================== */

.woobt-wrap .woobt-before-text {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

.woobt-wrap .woobt-products {
    background-color: var(--theme-palette-color-6);
    border: 1px solid var(--theme-palette-color-5);
    border-radius: 12px;
    padding: 4px 16px;
}

.woobt-wrap .woobt-products .woobt-product-together {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.woobt-wrap .woobt-products .woobt-product-together:last-child {
    border-bottom: none;
}

/* ซ่อนตัวเลข "1 ×" หน้าชื่อสินค้า Bundle เพราะเลือกได้แค่อย่างละ 1 ชิ้นเสมอ */
.woobt-products .woobt-qty-num {
    display: none;
}

/* ========================================
   MAIN PRODUCT QUANTITY LOCK (มี Bundle ผูกอยู่)
   ======================================== */

form.cart .quantity:has(.qty.np-qty-locked) {
    display: none !important;
}

.woobt-summary .woobt-text{
    font-size: 0.75rem !important;
    margin: 0 !important;
    font-weight: 500;
}

.woobt-alert {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    .woobt-wrap-responsive .woobt-products .woobt-product {
        flex-direction: row !important;
        gap: 1rem;
        padding: 1px 0 !important;
    }    
    .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb {
        flex-basis: unset !important;
    }    
    .woobt-wrap-responsive .woobt-products .woobt-product > div {
        text-align: left !important;
    }
    .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb img {
        width: 40px !important;
    }
}

/* ========================================
   REVIEW
   ======================================== */

[data-content=normal] .woocommerce-Reviews {
    grid-template-columns: repeat(1, 1fr) !important;
}

#reviews [type=submit]{
    width: 100%;
}

#review_form {
    padding: 25px;
    border-radius: 16px;
    background-color: var(--theme-palette-color-6);    
}

.woocommerce-Reviews .meta {
    font-size: 1.3rem;
    margin-bottom:15px;
}

.woocommerce-Reviews .avatar {
    max-width: 100%;
    height: 100%;    
}

.woocommerce-Reviews .comment_container {
    display: inline-flex !important;
}

.woocommerce-Reviews .comment_container {
    width: 100% !important;
    align-items: flex-start;
    gap: 1rem;
  }

.woocommerce-Reviews .comment_container .comment-text {
    flex: 1 1 auto;
    width: auto;
}

.woocommerce-Reviews .ct-review-votes {
    padding-top: 15px !important;
    margin-top: 15px !important;
}

/* ========================================
   CART
   ======================================== */

.cart .product-name a, 
#woo-cart-panel .product-title {
    overflow: hidden !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
}

.cart .woobt-item-name {
    display: none !important;
}

#woo-cart-panel .product-title {
    font-weight: 500 !important;
}

.woocommerce-cart-form__contents .coupon input {
    min-height: 40px;
}

/* ========================================
   CHECKOUT
   ======================================== */

.wp-block-woocommerce-checkout {
    padding-top: 0 !important;
}

.wc-block-checkout__sidebar .wc-block-components-product-name, 
.wc-block-components-product-name {
    font-weight: 500 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;    
    margin-bottom: 0 !important;
}

.wc-block-components-product-metadata {
    display: none !important;
}

.wc-block-components-checkout-step__container {
    --theme-palette-color-1: #f9f9f9;
}

.wishlist-product-actions .woobt-wrap{
    display: none !important;
}

.wishlist-product-actions .wc-forward {
    display: none !important;
}

.wishlist-product-name {
    font-weight: 500 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;    
    margin-bottom: 0 !important;
}

/* ========================================
   CUTTEXT
   ======================================== */
/* Base: ใช้ซ้ำทุกที่ */
.np-cut {
  --lines: 2;                 /* ค่าเริ่มต้น 2 บรรทัด (แก้ได้จากคลาสย่อย/inline style) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* สมัยใหม่ */
  line-clamp: var(--lines);
  /* Fallback WebKit/Chromium/Safari/Edge */
  -webkit-line-clamp: var(--lines);
}

/* ยูทิลิตี้จำนวนบรรทัดยอดนิยม */
.np-cut-1 { --lines: 1; }
.np-cut-2 { --lines: 2; }
.np-cut-3 { --lines: 3; }
.np-cut-4 { --lines: 4; }
.np-cut-5 { --lines: 5; }
.np-cut-6 { --lines: 6; }

/* เวอร์ชัน single-line แบบใช้ ellipsis (สำหรับหัวข้อที่ยาวมาก) */
.np-ellipsis-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   STORE PDF PAGE
   ======================================== */
.store-pdf-page {
  padding-top: 20px;
  padding-bottom: 40px;
}

.store-pdf-actions {
  margin-bottom: 20px;
}

.np-pdf-btn {
  display: inline-block;
  background-color: #ffffff;
  border: 1px solid #222222;
  border-radius: 8px;
  color: #222222;
  padding: 10px 25px;
  text-decoration: none;
  transition: 0.2s;
}

.np-pdf-btn:hover {
  background-color: #fcfcfc;
}

.np-pdf-btn:focus,
.np-pdf-btn:active {
  background-color: #f7f7f7;
  transform: scale(0.95);
}

.store-pdf-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid #7d7d7d2b;
  border-radius: 6px;
  overflow: hidden;
}

.store-pdf-object {
  width: 100%;
  height: 100%;
  border: 0;
}

/* fallback ในตัว <object> เผื่อเดสก์ท็อปบางตัวฝังไม่ได้ */
.store-pdf-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.store-pdf-fallback-text {
  margin: 0;
  font-size: 14px;
  color: #666666;
}

/* การ์ดสำหรับมือถือ — แทนกล่องฝังที่มักเป็นจอเปล่า */
.store-pdf-mobile {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e9e9ec;
  border-radius: 12px;
  background-color: #fafafa;
  text-decoration: none;
  color: #1a1a1a;
}

.store-pdf-mobile-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #e9e9ec;
  color: #d64541;
}

.store-pdf-mobile-icon svg {
  width: 22px;
  height: 22px;
}

.store-pdf-mobile-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-pdf-mobile-title {
  font-size: 15px;
  font-weight: 600;
}

.store-pdf-mobile-cta {
  font-size: 13px;
  color: #666666;
}

.store-pdf-empty {
  font-size: 14px;
  color: #666666;
}

/* จอเล็ก: ซ่อนกล่องฝัง โชว์การ์ดแตะเปิดแทน */
@media (max-width: 768px) {
  .store-pdf-embed {
    display: none;
  }
  .store-pdf-mobile {
    display: flex;
  }
}

/* ========================================
   STORE LOCATIONS (หน้ารวมสาขา — shortcode [store_locations])
   ======================================== */
.store-locations {
  --store-card-bg: var(--theme-palette-color-6, #ffffff);
  --store-border: var(--theme-palette-color-5, #e9e9ec);
  --store-heading: var(--theme-headings-color, #1a1a1a);
  --store-text: var(--theme-text-color, #63636b);
  --store-accent: #1a1a1a;
  --store-radius: 16px;
  --store-max-cols: 3;
}

.store-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* จอใหญ่: ล็อกจำนวนคอลัมน์ตาม attribute columns="" */
@media (min-width: 1100px) {
  .store-grid {
    grid-template-columns: repeat(var(--store-max-cols), 1fr);
  }
}

.store-card {
  display: flex;
  flex-direction: column;
  background-color: var(--store-card-bg);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--store-accent) 22%, var(--store-border));
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.4);
}

/* --- media (รูปสาขาด้านบน) --- */
.store-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f5;
}

.store-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.store-card:hover .store-card__img {
  transform: scale(1.05);
}

/* fallback: สาขาที่ยังไม่ได้อัปรูป */
.store-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(120% 120% at 15% 0%, #3a3a42 0%, #1a1a1f 62%, #111116 100%);
}

.store-card__fallback .store-icon {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.store-card__fallback-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.9;
}

/* --- body --- */
.store-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1 1 auto;
}

.store-card__title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
}

.store-card__title a {
  color: var(--store-heading);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.store-card__title a:hover {
  background-size: 100% 1.5px;
}

.store-card__meta {
  margin: 0;
  display: flex;
  gap: 9px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--store-text);
}

/* คงบรรทัดจาก textarea (เช่น เบอร์โทรที่อยู่คนละบรรทัด) */
.store-card__address span {
  white-space: pre-line;
}

/* เบอร์โทร: กดโทรได้บนมือถือ แต่บนจอใหญ่ให้กลมกลืนกับข้อความอื่นในการ์ด */
.store-card__phone a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.store-card__phone a:hover,
.store-card__phone a:focus-visible {
  color: var(--store-accent);
  border-bottom-color: currentColor;
}

.store-card__meta .store-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--store-accent);
  opacity: 0.75;
}

/* --- ปุ่มดูแผนที่ (CTA) --- */
.store-card__map {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background-color: var(--store-accent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-card__map .store-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.store-card__map:hover {
  opacity: 0.9;
}

.store-card__map:hover .store-icon {
  transform: translateX(3px);
}

.store-card__map:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-empty {
  font-size: 0.95rem;
  color: var(--theme-text-color, #666666);
}

@media (prefers-reduced-motion: reduce) {
  .store-card,
  .store-card__img,
  .store-card__map,
  .store-card__map .store-icon,
  .store-card__title a {
    transition: none;
  }
  .store-card:hover,
  .store-card:hover .store-card__img {
    transform: none;
  }
}

/* ========================================
   NEXTEND SOCIAL LOGIN — ปรับปุ่ม Google ให้เข้าธีม
   แก้แค่กรอบ/พื้นหลัง/ฟอนต์ ไม่แตะโลโก้ G (ข้อกำหนดของ Google)
   ======================================== */
div.nsl-container .nsl-button {
    border-radius: 999px !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

div.nsl-container .nsl-button-google[data-skin="light"] {
    box-shadow: none !important;
    border: 1.5px solid #d9dcde;
    background-color: #ffffff;
    color: #111518;
}

div.nsl-container .nsl-button-google[data-skin="light"]:hover {
    border-color: #ec1f24;
    color: #ec1f24;
}

div.nsl-container .nsl-button-google .nsl-button-svg-container {
    padding: 10px 8px 10px 16px;
}

div.nsl-container .nsl-button-default div.nsl-button-label-container {
    font-family: inherit !important;
    font-size: 15px;
    font-weight: 500;
    margin: 0 20px 0 8px;
    padding: 10px 0;
}

div.nsl-container-block .nsl-container-buttons a[data-plugin="nsl"] {
    width: 100%;
}

/* บังคับให้กล่องปุ่ม Google กว้างเท่าปุ่ม Log In เต็มความกว้าง
   ของเดิม grid-template-columns: minmax(145px, auto) ทำให้กล่องหดตามเนื้อหา ไม่กางเต็ม */
div.nsl-container {
    width: 100%;
}

div.nsl-container-block .nsl-container-buttons {
    grid-template-columns: 1fr !important;
    width: 100% !important;
}

/* บังคับความสูงให้เท่าปุ่ม Log In และจัดไอคอน/ข้อความให้อยู่กึ่งกลางแนวตั้ง */
div.nsl-container .nsl-button-default {
    align-items: center !important;
    min-height: 50px;
    box-sizing: border-box;
}

div.nsl-container .nsl-button-google .nsl-button-svg-container {
    padding: 0 8px 0 18px;
}

div.nsl-container .nsl-button-default div.nsl-button-label-container {
    padding: 0;
}
