/* Kayazh catalog foundation. All rules are confined to the catalog main area.
 * Keep parent gallery, variation, stock, price and cart behavior unchanged. */
:is(.khc-catalog,.khc-product) #content {
  --khc-ink:#17243c;
  --khc-muted:#64748b;
  --khc-line:#e5eaf2;
  --khc-blue:#3155d9;
  --khc-soft:#f5f7fc;
  color:var(--khc-ink);
}
:is(.khc-catalog,.khc-product) #content :is(a,button,input,select):focus-visible {
  outline:3px solid var(--khc-blue);
  outline-offset:3px;
}
:is(.khc-catalog,.khc-product) #content .woocommerce-breadcrumb {
  line-height:1.9;
}
/* Product: make the title, current price and purchase action easy to scan. */
.khc-product #content :is(.product-title h1,h1.product-title) {
  color:var(--khc-ink);
  font-size:clamp(21px,2vw,28px);
  font-weight:800;
  line-height:1.7;
  margin:0 0 8px;
}
.khc-product #content :is(.product-english-name,.en-title) {
  color:var(--khc-muted);
  font-size:13px;
  line-height:1.8;
}
.khc-product #content .product-info-box {
  background:var(--khc-soft);
  border:1px solid #dbe3f5;
  border-radius:18px;
  box-shadow:none;
  padding:20px;
}
.khc-product #content .product-info-box :is(.price,.price ins) .amount {
  color:var(--khc-ink);
  font-size:24px!important;
  font-weight:800;
  line-height:1.7;
}
.khc-product #content .product-info-box .price del .amount {
  color:var(--khc-muted);
  font-size:14px!important;
  font-weight:400;
}
.khc-product #content :is(.product-info-box,.cart-fixed) .single_add_to_cart_button {
  background:var(--khc-blue)!important;
  background-image:none!important;
  border:0;
  border-radius:12px;
  min-height:48px;
  box-shadow:none!important;
  color:#fff;
  font-size:15px!important;
  font-weight:700;
  line-height:1.7!important;
}
.khc-product #content .single_add_to_cart_button:is(:disabled,.disabled) {
  opacity:.5;
  cursor:not-allowed;
}
.khc-product #content .variations {
  margin-block:16px!important;
}
.khc-product #content .variations :is(.label,label) {
  color:var(--khc-ink);
  font-size:14px;
  line-height:1.8;
}
.khc-product #content .swatch-wrapper {
  margin:4px;
  padding:4px;
}
.khc-product #content .swatch-wrapper.selected {
  border-color:var(--khc-blue)!important;
}
.khc-product #content .swatch-anchor {
  min-width:36px;
  min-height:36px;
}
.khc-product #content .radio-select label {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  cursor:pointer;
}
/* Native selects stay in sync when WooCommerce clears an unavailable default.
 * Bakala's duplicate radios can keep a checked appearance after that reset. */
.khc-product #content .radio-select select {
  display:block!important;
  position:static!important;
  opacity:1!important;
  visibility:visible!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%;
  height:48px!important;
  padding:8px 12px!important;
  border:1px solid #cdd6e8;
  border-radius:10px;
  background:#fff;
  color:var(--khc-ink);
  font-size:16px;
}
.khc-product #content .radio-select > ul {
  display:none!important;
}
.khc-product #content :is(.main-features-title,.free-shipping-title) {
  color:var(--khc-ink);
  font-size:14px;
  font-weight:700;
  line-height:1.8;
}
.khc-product #content .main-features-item :is(.title,.value) {
  font-size:13px;
  line-height:1.9;
}
.khc-product #content .free-shipping-alert {
  background:var(--khc-soft);
  border:1px solid var(--khc-line);
  border-radius:14px;
  box-shadow:none;
}
.khc-product #content .free-shipping-subtitle {
  color:var(--khc-muted);
  font-size:13px;
  line-height:1.9;
}
.khc-product #content :is(.vendor-warranty,.leadTime-info,.product-remain) {
  font-size:13px;
  line-height:1.9;
}
.khc-product #content :is(.vendor-warranty::before,.leadTime-info i.icon::before,.icon-stock-notice::before) {
  box-shadow:none!important;
}
.khc-product #content .product-info-box .bakala_extra_btn_product a {
  background:#24334b!important;
  border:1px solid #cdd6e8;
  border-radius:12px;
}
.khc-product #content .product-info-box .bakala_extra_btn_product_text1 {
  color:#fff!important;
}
/* Category: calm cards, legible prices and consistent sorting controls. */
.khc-catalog #content .content-box-shop {
  background:#fff;
  border-radius:16px;
  box-shadow:none;
}
.khc-catalog #content ul.products li.product {
  border-color:var(--khc-line);
  border-radius:16px;
  box-shadow:none!important;
}
.khc-catalog #content .product-box-inner {
  box-shadow:none!important;
}
.khc-catalog #content .content-box-shop .loop-add-to-cart {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  width:100%;
}
.khc-catalog #content .content-box-shop .loop-add-to-cart .quantity.hidden {
  display:none!important;
}
.khc-catalog #content .content-box-shop .loop-add-to-cart a.button.product_type_simple.add_to_cart_button {
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  min-height:44px;
  height:auto!important;
  margin:0!important;
  padding:10px 8px!important;
  border-radius:10px;
  background:var(--khc-blue)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:13px!important;
  line-height:1.8;
}
.khc-catalog #content .content-box-shop .loop-add-to-cart a.button.product_type_simple.add_to_cart_button::before {
  content:none!important;
  display:none!important;
}
.khc-catalog #content :is(.products__item-fatitle,.products-list .product_title) {
  color:var(--khc-ink);
  font-size:15px;
  font-weight:700;
  line-height:1.85;
}
.khc-catalog #content .products__item-price .amount {
  color:var(--khc-ink);
  font-size:18px;
  font-weight:700;
  line-height:1.7;
}
.khc-catalog #content .products__item-price del .amount {
  color:var(--khc-muted);
  font-size:13px;
  font-weight:400;
}
.khc-catalog #content .main_custom_order_by_sort {
  background:var(--khc-soft);
  border:1px solid var(--khc-line);
  border-radius:12px;
}
.khc-catalog #content .custom_order_by_sort {
  min-height:44px;
  line-height:1.8;
  padding:12px;
  border-radius:10px;
}
.khc-catalog #content .custom_order_by_sort.selected {
  color:var(--khc-blue);
  background:#eaf0ff;
  font-weight:700;
}
.khc-catalog #content :is(.woocommerce-pagination a,.woocommerce-pagination .current,#load-more-button) {
  min-width:44px;
  min-height:44px;
  border-radius:10px;
}
/* These selectors target Bakala's real mobile template, not its desktop grid. */
.khc-catalog.khc-mobile #content {
  box-sizing:border-box;
  width:100%;
  padding-inline:0!important;
}
.khc-catalog.khc-mobile #content .shop-page,
.khc-catalog.khc-mobile #content .shop-page > .col-md-9 {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin-inline:0;
  padding-inline:0;
}
.khc-catalog #content .archive-list-view-main-label {
  background:var(--khc-soft)!important;
  background-image:none!important;
  border:1px solid var(--khc-line);
  border-radius:14px!important;
  corner-shape:round!important;
}
.khc-catalog #content .archive-list-view-main-label span {
  color:var(--khc-ink);
  font-size:18px;
}
.khc-catalog #content .archive-list-view .type_view::before {
  color:var(--khc-muted);
}
.khc-catalog #content .archive-list-view .type_view.active::before {
  color:var(--khc-blue);
}
.khc-catalog #content .archive-product-sticky > div {
  flex:1;
  min-height:48px;
  width:auto;
  margin-inline:4px;
  background:#fff;
  border:1px solid var(--khc-line);
  border-radius:12px!important;
  box-shadow:none;
  color:var(--khc-ink);
  font-size:14px;
}
.khc-catalog #content .archive-list-products.listing ul.products li.product {
  height:auto!important;
  min-height:0;
  margin-bottom:12px!important;
}
.khc-catalog #content .archive-list-products.listing .product-box-inner {
  height:auto;
  min-height:0;
}
.khc-catalog #content .archive-list-products.listing .products-list {
  height:auto;
  min-height:0;
  border:1px solid var(--khc-line);
  border-radius:16px;
  box-shadow:none!important;
  padding:14px 10px;
  overflow:visible;
}
.khc-catalog #content .archive-list-products.listing .products-list article.row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);
  align-items:start;
  gap:12px;
  margin:0;
}
.khc-catalog #content .archive-list-products.listing .products-list article.row > :is(a,[data-type="info"]) {
  width:100%;
  min-width:0;
  float:none;
  padding:0;
}
.khc-catalog #content .archive-list-products.listing .product-thumb img {
  width:100%;
  height:auto;
  max-width:100%;
  max-height:150px;
  object-fit:contain;
  margin:0;
}
.khc-catalog #content .archive-list-products.listing .product_title {
  position:static;
  height:auto;
  min-height:0;
  max-height:none;
  margin:0 0 10px;
  white-space:normal;
  overflow:visible;
  overflow-wrap:anywhere;
}
.khc-catalog #content .archive-list-products.listing .products__item-price {
  text-align:right;
}
.khc-catalog #content .archive-list-products.listing .loop-add-to-cart {
  display:flex!important;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px!important;
  align-items:center;
}
.khc-catalog #content .archive-list-products.listing .loop-add-to-cart .quantity {
  position:relative!important;
  inset:auto!important;
  margin:0!important;
  float:none;
  flex:0 0 auto;
  min-height:44px;
}
.khc-catalog #content .archive-list-products.listing .loop-add-to-cart .quantity.hidden {
  display:none!important;
}
.khc-catalog #content .archive-list-products.listing .product-color-list:empty {
  margin:0;
}
.khc-catalog #content .archive-list-products.listing .product-type-variable button.bakala-select-options {
  position:relative!important;
  inset:auto!important;
  min-height:44px;
  margin-top:10px;
  width:100%;
}
.khc-catalog #content .archive-list-products.listing .loop-add-to-cart a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  position:relative!important;
  inset:auto!important;
  margin:0!important;
  padding:10px 8px!important;
  width:100%!important;
  height:auto!important;
  min-height:44px;
  background:var(--khc-blue)!important;
  box-shadow:none!important;
  border-radius:10px;
  color:#fff;
  font-size:13px!important;
  line-height:1.8;
  text-indent:0;
}
.khc-catalog #content .archive-list-products.listing .loop-add-to-cart a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart::before {
  content:none!important;
  display:none!important;
}
@media (max-width:767px) {
  .khc-product #content .product-section {
    border-color:var(--khc-line);
    text-align:right;
    corner-shape:round!important;
  }
  .khc-product #content .product-section > ul {
    font-size:14px;
    line-height:2;
  }
  .khc-product #content .cart-fixed .single_add_to_cart_button {
    font-size:13px!important;
  }
  .khc-product #content .cart-fixed .bakala-product-price :is(ins .amount,#price-holder > .amount) {
    color:var(--khc-ink);
    font-size:18px;
    line-height:1.6;
  }
  .khc-product #content .cart-fixed .bakala-product-price del .amount {
    color:var(--khc-muted);
    font-size:12px;
  }
}
