/*
Theme Name: Kaff Hanoi
Theme URI: https://kaffhanoi.vn
Author: Kaff Hanoi Team
Author URI: https://kaffhanoi.vn
Description: Kaff Hanoi WordPress/WooCommerce Theme ported from Minimog 5.8.0. Premium kitchen equipment and home appliances store.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaff-hanoi
Tags: e-commerce, two-columns, custom-menu, custom-logo, featured-images, translation-ready

Kaff Hanoi WordPress Theme is licensed under the GPL.
Ported from Minimog Shopify Theme 5.8.0.
*/

/* =WordPress Core Required Classes
-------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==============================================================
   KAFF HANOI - MODERN UI & E-COMMERCE STYLING ENGINE
   ============================================================== */

:root {
  --kaff-primary: #ed222b;
  --kaff-primary-hover: #c81a22;
  --kaff-dark: #222222;
  --kaff-border: #eaeaea;
  --kaff-bg-light: #fafafa;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  color: #333333;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

/* --- 1. HEADER & NAVIGATION (DESKTOP VS MOBILE) --- */
.m-header__desktop {
  display: none !important;
}

.m-header__mobile {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.m-header__mobile .m-logo--mobile img {
  max-width: 110px;
  height: auto;
  display: block;
}

.m-header__mobile-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 992px) {
  .m-header__desktop {
    display: block !important;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
  }
  .m-header__mobile {
    display: none !important;
  }
}

.m-menu-navbar {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.m-menu-navbar li {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.m-menu-navbar li a {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2px !important;
  padding: 10px 0 !important;
  display: block !important;
  position: relative;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
}

.m-menu-navbar li a:hover,
.m-menu-navbar li.current-menu-item a {
  color: #ed222b !important;
}

.m-menu-navbar li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ed222b;
  transition: width 0.25s ease;
}

.m-menu-navbar li a:hover::after,
.m-menu-navbar li.current-menu-item a::after {
  width: 100%;
}

/* --- 2. SINGLE PRODUCT PAGE LAYOUT & MEDIA --- */
.m-single-product-wrapper {
  padding: 25px 0 60px 0;
  background-color: #ffffff;
}

.m-product-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.m-product-gallery-col {
  flex: 1 1 450px;
  min-width: 320px;
  max-width: 100%;
}

.m-product-media {
  position: relative;
}

.m-product-info-col {
  flex: 1 1 450px;
  min-width: 320px;
  max-width: 100%;
}

@media (max-width: 991px) {
  .m-product-details-row {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .m-product-gallery-col {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }
  .m-product-media {
    position: static !important;
    top: auto !important;
  }
  .m-product-info-col {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

.m-product-media__main {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.m-product-media__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.kaff-thumb-item {
  width: 76px;
  height: 76px;
  border: 2px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: #ffffff;
  padding: 4px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.kaff-thumb-item:hover,
.kaff-thumb-item.active {
  border-color: #ed222b !important;
  box-shadow: 0 2px 8px rgba(237,34,43,0.2);
}

/* --- 3. WOOCOMMERCE FORM & BUTTONS STYLING --- */
.woocommerce div.product form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
}

.woocommerce div.product form.cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
}

.woocommerce div.product form.cart .quantity input.qty {
  width: 65px !important;
  height: 50px !important;
  text-align: center !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #222222 !important;
  background: #fafafa !important;
  padding: 0 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1 !important;
  min-width: 200px !important;
  height: 50px !important;
  background-color: #ed222b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 25px !important;
  box-shadow: 0 4px 12px rgba(237,34,43,0.25) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: #c81a22 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(237,34,43,0.35) !important;
}

/* --- 4. WOOCOMMERCE TABS (DESCRIPTION, SPECS, WARRANTY) --- */
.woocommerce-tabs {
  margin-top: 0 !important;
}

.woocommerce-tabs ul.tabs {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 25px 0 !important;
  border-bottom: 2px solid #eaeaea !important;
  gap: 28px !important;
  overflow-x: auto !important;
}

@media (max-width: 767px) {
  .m-product-details-row {
    margin-bottom: 20px !important;
    gap: 20px !important;
  }
  .m-product-tabs-section {
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  .woocommerce-tabs ul.tabs {
    margin-bottom: 18px !important;
    gap: 20px !important;
  }
}

.woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 5px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #666666 !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  transition: all 0.2s ease !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: #ed222b !important;
  border-bottom-color: #ed222b !important;
}

.woocommerce-Tabs-panel {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #333333 !important;
}

.woocommerce-Tabs-panel h2:first-child {
  display: none !important;
}

.woocommerce-Tabs-panel img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 20px auto !important;
  display: block !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- 5. PRODUCT CATALOG & RELATED PRODUCTS 4-COLUMN GRID --- */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 25px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1199px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* ==============================================================
   5.1 BESPOKE RELATED PRODUCTS (SẢN PHẨM TƯƠNG TỰ)
   - Desktop: 1 hàng, đúng 4 sản phẩm đầu tiên
   - Mobile: 1 hàng, hiển thị 2 sản phẩm đầu, vuốt ngang sang phải để xem tiếp
   ============================================================== */
.m-related-products-wrapper {
  margin-top: 60px !important;
  position: relative;
  width: 100%;
}

.m-related-products-wrapper .kaff-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.m-related-products-wrapper .kaff-related-title,
.m-related-products-wrapper .related.products > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.m-related-products-wrapper .kaff-related-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.m-related-products-wrapper .kaff-related-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.m-related-products-wrapper .kaff-related-nav-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

/* DESKTOP (>= 1024px): Đúng 1 hàng và 4 sản phẩm đầu */
@media (min-width: 1024px) {
  .m-related-products-wrapper .kaff-related-nav {
    display: none !important;
  }

  .m-related-products-wrapper .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  .m-related-products-wrapper .related.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
  }

  /* Ẩn sản phẩm từ thứ 5 trở đi trên desktop để chỉ hiển thị 1 hàng 4 sản phẩm */
  .m-related-products-wrapper .related.products ul.products li.product:nth-child(n+5) {
    display: none !important;
  }
}

/* TABLET (768px - 1023px): 1 hàng 4 sản phẩm */
@media (min-width: 768px) and (max-width: 1023px) {
  .m-related-products-wrapper .kaff-related-nav {
    display: none !important;
  }

  .m-related-products-wrapper .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 15px !important;
    overflow: visible !important;
  }

  .m-related-products-wrapper .related.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
  }

  .m-related-products-wrapper .related.products ul.products li.product:nth-child(n+5) {
    display: none !important;
  }
}

/* MOBILE (< 768px): 1 hàng, 2 sản phẩm đầu vừa vặn khung hình, kéo ngang sang phải xem tiếp */
@media (max-width: 767px) {
  .m-related-products-wrapper {
    margin-top: 40px !important;
  }

  .m-related-products-wrapper .kaff-related-header {
    margin-bottom: 16px;
  }

  .m-related-products-wrapper .kaff-related-title,
  .m-related-products-wrapper .related.products > h2 {
    font-size: 17px !important;
  }

  .m-related-products-wrapper .kaff-related-nav {
    display: flex !important;
  }

  .m-related-products-wrapper .related.products ul.products {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 12px !important;
    padding: 4px 2px 14px 2px !important;
    margin: 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    cursor: grab;
    user-select: none;
  }

  .m-related-products-wrapper .related.products ul.products::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .m-related-products-wrapper .related.products ul.products.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none !important;
  }

  /* Mỗi sản phẩm chiếm đúng một nửa trừ khoảng cách gap để hiển thị 2 sản phẩm đầu trên 1 hàng */
  .m-related-products-wrapper .related.products ul.products li.product {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    max-width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
  }

  /* Đảm bảo tất cả sản phẩm đều hiển thị trên thanh cuộn ngang của mobile */
  .m-related-products-wrapper .related.products ul.products li.product:nth-child(n+5) {
    display: block !important;
  }

  .m-related-products-wrapper .m-product-card {
    padding: 10px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .m-related-products-wrapper .m-product-card__content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    padding-top: 10px !important;
  }

  .m-related-products-wrapper .m-product-card__action button {
    padding: 6px 4px !important;
    font-size: 11px !important;
    letter-spacing: -0.2px;
  }

  .m-related-products-wrapper .m-product-card__title {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    min-height: 38px !important;
    max-height: 38px !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
  }

  .m-related-products-wrapper .m-product-card__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #222222 !important;
  }

  .m-related-products-wrapper .m-product-card__price {
    margin-top: auto !important;
  }

  .m-related-products-wrapper .m-product-card__price .m-price {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
}

/* Desktop typography refinements */
@media (min-width: 1024px) {
  .m-related-products-wrapper .m-product-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
  }

  .m-related-products-wrapper .m-product-card__content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    padding-top: 12px !important;
  }

  .m-related-products-wrapper .m-product-card__title {
    font-size: 14px !important;
    line-height: 1.45 !important;
    min-height: 42px !important;
    max-height: 42px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
  }

  .m-related-products-wrapper .m-product-card__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .m-related-products-wrapper .m-product-card__price {
    margin-top: auto !important;
  }
}

/* ==============================================================
   5.2 PRODUCT DESCRIPTION READ MORE & STICKY COLLAPSE
   - Thu gọn nội dung mô tả chi tiết ban đầu (420px) + Gradient mờ dần
   - Nút "Xem thêm nội dung" bo góc đỏ KAFF tinh tế
   - Nút "Thu gọn" ghim nổi (sticky) ở dưới màn hình khi cuộn đọc
   ============================================================== */
.kaff-product-description-container {
  position: relative;
  width: 100%;
}

.kaff-product-description-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.8;
  color: #333333;
}

.kaff-product-description-container.is-collapsed .kaff-product-description-content {
  max-height: 420px;
  overflow: hidden;
}

.kaff-product-description-container.is-expanded .kaff-product-description-content {
  max-height: none;
  overflow: visible;
}

/* Gradient Fade-out Overlay */
.kaff-desc-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 45%, #ffffff 95%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  pointer-events: none;
  z-index: 10;
}

.kaff-product-description-container.is-expanded .kaff-desc-fade-overlay {
  display: none !important;
}

/* Read More & Read Less Buttons */
.kaff-desc-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: #ffffff;
  color: #ed222b;
  border: 1.5px solid #ed222b;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(237, 34, 43, 0.15);
  outline: none;
}

.kaff-desc-btn:hover {
  background: #ed222b;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(237, 34, 43, 0.3);
  transform: translateY(-2px);
}

.kaff-desc-btn svg {
  transition: transform 0.25s ease;
}

.kaff-desc-btn--more:hover svg {
  transform: translateY(2px);
}

.kaff-desc-btn--less:hover svg {
  transform: translateY(-2px);
}

/* Bottom Inline Collapse Container */
.kaff-desc-bottom-collapse {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px dashed #e5e7eb;
}

/* Floating Pinned / Sticky Collapse Button */
.kaff-sticky-collapse-wrapper {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 40px);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.kaff-sticky-collapse-wrapper.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.kaff-sticky-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  background: #222222;
  color: #ffffff;
  border: 1.5px solid #333333;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.kaff-sticky-collapse-btn:hover {
  background: #ed222b;
  border-color: #ed222b;
  box-shadow: 0 8px 28px rgba(237, 34, 43, 0.4);
  transform: translateY(-2px);
}

.kaff-sticky-collapse-btn svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .kaff-product-description-container.is-collapsed .kaff-product-description-content {
    max-height: 380px;
  }
  
  .kaff-desc-fade-overlay {
    height: 130px;
  }

  .kaff-desc-btn {
    padding: 9px 22px;
    font-size: 13px;
  }

  .kaff-sticky-collapse-wrapper {
    bottom: 20px;
  }

  .kaff-sticky-collapse-btn {
    padding: 10px 22px;
    font-size: 13px;
  }
}

.m-product-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #ffd6d6;
}

.m-product-card__media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
  background-color: #fafafa;
  margin-bottom: 12px;
}

.m-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.m-product-card:hover .m-product-card__media img {
  transform: scale(1.04);
}

.m-product-card__title a {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.m-product-card__title a:hover {
  color: #ed222b;
}

.m-product-card__price {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.m-product-card__price .m-price-item--sale {
  color: #ed222b;
  font-size: 16px;
  font-weight: 700;
}

.m-product-card__price .m-price-item--regular {
  color: #888888;
  font-size: 13px;
  text-decoration: line-through;
}

.m-product-card__actions {
  margin-top: 12px;
}

.m-product-card__actions .m-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #f7f7f7;
  color: #222222;
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.m-product-card__actions .m-button:hover {
  background-color: #ed222b;
  color: #ffffff;
  border-color: #ed222b;
}

/* --- 6. CART & CHECKOUT PAGE STYLING --- */
.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
  border: 1px solid #eaeaea !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  background-color: #ed222b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 25px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(237,34,43,0.25) !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover {
  background-color: #c81a22 !important;
  transform: translateY(-1px) !important;
}

/* --- 7. BREADCRUMBS STYLING --- */
.woocommerce-breadcrumb {
  font-size: 13.5px;
  color: #888888;
  margin-bottom: 25px;
}

.woocommerce-breadcrumb a {
  color: #555555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
  color: #ed222b;
}

/* --- 8. KAFF SLIDE-OUT CART DRAWER --- */
.m-cart-drawer,
.kaff-cart-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  display: block !important;
}

.m-cart-drawer.open,
.m-cart-drawer.is-open,
.m-cart-drawer.m-cart-drawer--active,
.kaff-cart-drawer.is-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.m-cart-drawer__backdrop,
.kaff-cart-drawer__backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.55) !important;
  cursor: pointer !important;
}

.m-cart-drawer__wrapper,
.kaff-cart-drawer__panel {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 440px !important;
  max-width: 90vw !important;
  height: 100% !important;
  background: #ffffff !important;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 2 !important;
}

.m-cart-drawer.open .m-cart-drawer__wrapper,
.m-cart-drawer.is-open .m-cart-drawer__wrapper,
.m-cart-drawer.m-cart-drawer--active .m-cart-drawer__wrapper,
.kaff-cart-drawer.is-open .kaff-cart-drawer__panel {
  transform: translateX(0) !important;
}

.m-cart-drawer__header,
.kaff-cart-drawer__header {
  padding: 14px 18px !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ed222b !important;
}

.m-cart-drawer__close,
.kaff-cart-drawer__close {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: background 0.2s ease !important;
}

.m-cart-drawer__close:hover,
.kaff-cart-drawer__close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.m-cart-drawer__body,
.kaff-cart-drawer__body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px 18px !important;
  background: #fbfcfd !important;
}

/* Mini cart list styles inside drawer */
.m-cart-drawer .woocommerce-mini-cart,
.kaff-cart-drawer .woocommerce-mini-cart {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.m-cart-drawer .woocommerce-mini-cart-item,
.kaff-cart-drawer .woocommerce-mini-cart-item {
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  padding: 15px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  position: relative !important;
}

.m-cart-drawer .woocommerce-mini-cart-item img,
.kaff-cart-drawer .woocommerce-mini-cart-item img {
  width: 65px !important;
  height: 65px !important;
  object-fit: contain !important;
  border: 1px solid #eaeaea !important;
  border-radius: 6px !important;
  padding: 3px !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.m-cart-drawer .woocommerce-mini-cart-item a:not(.remove),
.kaff-cart-drawer .woocommerce-mini-cart-item a:not(.remove) {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  text-decoration: none !important;
  line-height: 1.35 !important;
  display: block !important;
}

.m-cart-drawer .woocommerce-mini-cart-item a.remove,
.kaff-cart-drawer .woocommerce-mini-cart-item a.remove {
  color: #999999 !important;
  font-size: 18px !important;
  text-decoration: none !important;
  margin-left: auto !important;
}

.m-cart-drawer .woocommerce-mini-cart-item a.remove:hover,
.kaff-cart-drawer .woocommerce-mini-cart-item a.remove:hover {
  color: #ed222b !important;
}

.m-cart-drawer__footer,
.kaff-cart-drawer__footer {
  padding: 20px !important;
  border-top: 1px solid #eeeeee !important;
  background: #fafafa !important;
}

/* Hide default buttons inside mini-cart to use our dedicated footer buttons */
.m-cart-drawer .woocommerce-mini-cart__buttons,
.kaff-cart-drawer .woocommerce-mini-cart__buttons {
  display: none !important;
}

.m-cart-drawer .woocommerce-mini-cart__total,
.kaff-cart-drawer .woocommerce-mini-cart__total {
  display: none !important;
}

/* --- 9. WOOCOMMERCE CART PAGE TABLE STYLING --- */
.woocommerce-cart .woocommerce {
  max-width: 1200px !important;
  margin: 20px auto 60px !important;
  padding: 0 15px !important;
}

.woocommerce-cart table.shop_table.cart {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 30px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  border: 1px solid #eaeaea !important;
  overflow: hidden !important;
}

.woocommerce-cart table.shop_table.cart th {
  background: #fafafa !important;
  color: #222222 !important;
  font-weight: 700 !important;
  padding: 14px 16px !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  border-bottom: 2px solid #eaeaea !important;
}

.woocommerce-cart table.shop_table.cart td {
  padding: 16px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  vertical-align: middle !important;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
  width: 75px !important;
  height: 75px !important;
  object-fit: contain !important;
  border: 1px solid #eaeaea !important;
  border-radius: 6px !important;
  padding: 4px !important;
  background: #ffffff !important;
  display: block !important;
}

.woocommerce-cart table.shop_table.cart td.product-name a {
  font-weight: 600 !important;
  color: #222222 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
  color: #ed222b !important;
}

.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart td.product-subtotal {
  font-weight: 700 !important;
  color: #ed222b !important;
  font-size: 16px !important;
}

.woocommerce-cart table.shop_table.cart .actions {
  padding: 20px 16px !important;
  background: #fafafa !important;
}

.woocommerce-cart table.shop_table.cart .coupon {
  display: inline-flex !important;
  gap: 10px !important;
  align-items: center !important;
}

.woocommerce-cart table.shop_table.cart .coupon input.input-text {
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
}

.woocommerce-cart table.shop_table.cart .coupon button.button,
.woocommerce-cart table.shop_table.cart .actions button[name="update_cart"] {
  height: 42px !important;
  background: #222222 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 0 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.woocommerce-cart table.shop_table.cart .coupon button.button:hover,
.woocommerce-cart table.shop_table.cart .actions button[name="update_cart"]:hover {
  background: #ed222b !important;
}

.woocommerce-cart .cart_totals {
  background: #fafafa !important;
  border: 1px solid #eaeaea !important;
  border-radius: 8px !important;
  padding: 25px !important;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  color: #222222 !important;
  border-bottom: 2px solid #ed222b !important;
  padding-bottom: 10px !important;
  display: inline-block !important;
}

.woocommerce-cart .cart_totals table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 25px !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 12px 0 !important;
  border-bottom: 1px solid #eaeaea !important;
}

.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #ed222b !important;
}

/* ==============================================================
   CHECKOUT PAGE (Fully managed by assets/css/checkout.css)
   ============================================================== */

/* ==============================================================
   MOBILE UI/UX POLISH & EXACT CENTER LOGO
   ============================================================== */

/* 1. Strict Responsive Display: Desktop vs Mobile Header */
@media (min-width: 992px) {
  .m-header__mobile {
    display: none !important;
  }
  .m-header__desktop {
    display: block !important;
  }
}

@media (max-width: 991px) {
  .m-header__desktop {
    display: none !important;
  }
  .m-header__mobile {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 56px !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  .m-header__mobile .m-menu-button {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    cursor: pointer !important;
    z-index: 5 !important;
  }
  .m-header__mobile .m-logo--mobile {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 140px !important;
  }
  .m-header__mobile .m-logo--mobile img {
    max-width: 120px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .m-header__mobile-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    z-index: 5 !important;
  }
}

/* 2. Mobile Menu Drawer */
.m-menu-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.m-menu-drawer.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.m-menu-drawer__backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
  z-index: 1 !important;
}

.m-menu-drawer__wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100% !important;
  background-color: #ffffff !important;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 100 !important;
}

.m-menu-drawer.open .m-menu-drawer__wrapper {
  transform: translateX(0) !important;
}

.m-menu-drawer__header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #eeeeee !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
}

.m-menu-drawer__header span {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #222222 !important;
  letter-spacing: 0.5px !important;
}

.m-menu-drawer__close {
  background: none !important;
  border: none !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  color: #888888 !important;
  padding: 0 4px !important;
}

.m-menu-drawer__close:hover {
  color: #ed222b !important;
}

.m-menu-drawer__content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 10px 0 !important;
  background: #ffffff !important;
}

.m-menu-mobile {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.m-menu-mobile li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #f2f2f2 !important;
}

.m-menu-mobile li a {
  display: block !important;
  padding: 13px 20px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.m-menu-mobile li a:hover,
.m-menu-mobile li.current-menu-item a {
  color: #ed222b !important;
  background-color: #fff8f8 !important;
  padding-left: 25px !important;
}

/* 3. Product Single Tabs Mobile Fix (No Squishing!) */
.woocommerce-tabs ul.tabs {
  display: flex !important;
  list-style: none !important;
  padding: 0 0 5px 0 !important;
  margin: 0 0 25px 0 !important;
  border-bottom: 2px solid #eaeaea !important;
  gap: 15px !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border: none !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #666666 !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important; /* CRITICAL: PREVENT SQUISHING! */
  transition: all 0.2s ease !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: #ed222b !important;
  border-bottom-color: #ed222b !important;
}

/* 4. Single Product Responsive Typography and Form Elements */
@media (max-width: 991px) {
  .m-single-product-wrapper {
    padding: 20px 15px !important;
  }
  
  .product_title.entry-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  p.price,
  .m-single-product__price {
    font-size: 22px !important;
    margin-bottom: 15px !important;
  }

  .woocommerce div.product form.cart {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
  }

  .woocommerce div.product form.cart .quantity {
    width: 60px !important;
    margin: 0 !important;
  }

  .woocommerce div.product form.cart .quantity input.qty {
    height: 46px !important;
    width: 100% !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    text-align: center !important;
  }

  .woocommerce div.product form.cart button.single_add_to_cart_button {
    flex: 1 !important;
    height: 46px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
  }

  /* Hotline button */
  .m-single-product__agency-btn {
    height: 46px !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    margin-bottom: 25px !important;
  }

  /* Commitments Box */
  .m-single-product__commitments {
    padding: 12px 14px !important;
    margin-bottom: 20px !important;
  }

  .m-single-product__commitments li {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
  }
}

/* 5. Mobile Brand Intro Section (Section 2) Polish */
@media (max-width: 767px) {
  #m-brand-intro {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }

  #m-brand-intro .m-custom-content__wrapper {
    margin-bottom: 25px !important;
  }

  #m-brand-intro .m-section__heading {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }

  .kaff-reputation-item h3 {
    font-size: 17px !important;
  }

  .kaff-reputation-item p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* 6. Product Gallery Swipe Slider */
.kaff-gallery-slider-viewport {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.kaff-gallery-nav:hover {
  background-color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}

.kaff-thumb-item {
  transition: all 0.2s ease !important;
}

.kaff-thumb-item.active {
  border-color: #ed222b !important;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(237,34,43,0.25);
}

/* 7. Quantity Selector Plus (+) & Minus (-) Buttons */
.quantity.kaff-quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  height: 46px !important;
  box-sizing: border-box !important;
}

.kaff-qty-btn {
  width: 38px !important;
  height: 100% !important;
  background-color: #f7f7f7 !important;
  border: none !important;
  color: #333333 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  padding: 0 !important;
}

.kaff-qty-btn:hover {
  background-color: #eeeeee !important;
  color: #ed222b !important;
}

.kaff-qty-btn:active {
  background-color: #e0e0e0 !important;
}

.quantity.kaff-quantity input.qty {
  width: 44px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #222222 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -moz-appearance: textfield !important;
}

.quantity.kaff-quantity input.qty::-webkit-inner-spin-button,
.quantity.kaff-quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.woocommerce div.product form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.woocommerce div.product form.cart .quantity.kaff-quantity {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* ============================================================
   Cart Badge — Prominent Red Dot with Pop Animation
   ============================================================ */

/* Pop animation when badge updates */
@keyframes kaff-badge-pop {
  0%   { transform: scale(0.5); opacity: 0.5; }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); opacity: 1; }
}

/* Base badge styles (shared mobile + desktop) */
.m-cart-icon-bubble {
  position: relative !important;
}

.m-cart-count-bubble,
.m-cart-count {
  position: absolute !important;
  top: -6px !important;
  right: -10px !important;
  background-color: #ed222b !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(237, 34, 43, 0.5) !important;
  z-index: 10 !important;
  padding: 0 4px !important;
  animation: kaff-badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Mobile header (dark bg) — no border for clean look */
.m-header__mobile .m-cart-count-bubble,
.m-header__mobile .m-cart-count {
  border: none !important;
}

/* Desktop header (light bg) — border matches white background */
.m-header__desktop .m-cart-count-bubble,
.m-header__desktop .m-cart-count {
  border: 2px solid #ffffff !important;
  top: -8px !important;
  right: -8px !important;
}

/* Hide badge when cart is empty */
.m-cart-count.m\:hidden {
  display: none !important;
}

/* ============================================================
   Cart Drawer — Enhanced UI (Qty +/-, Delete, Coupon)
   ============================================================ */

/* Remove number input spinners */
.kaff-drawer-qty-input::-webkit-outer-spin-button,
.kaff-drawer-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Qty button hover states */
.kaff-drawer-qty-minus:hover,
.kaff-drawer-qty-plus:hover {
  background: #eee !important;
  color: #222 !important;
}

.kaff-drawer-qty-minus:active,
.kaff-drawer-qty-plus:active {
  background: #ddd !important;
  transform: scale(0.95);
}

/* Cart item image consistent sizing */
.m-cart-drawer__body .m-cart-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Smooth transitions for drawer loading state */
#MinimogCartDrawerBody {
  transition: opacity 0.2s ease;
}

/* Coupon input focus ring */
#kaff-drawer-coupon-code:focus {
  border-color: #ed222b !important;
  box-shadow: 0 0 0 2px rgba(237, 34, 43, 0.1) !important;
}

/* ==============================================================
   6. STANDARD PAGES & EDITORIAL LAYOUT (GIỚI THIỆU, BẢO HÀNH, LIÊN HỆ, GIỎ HÀNG)
   ============================================================== */
.m-container {
  width: 100%;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  padding: 35px 24px 60px 24px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .m-container {
    padding: 24px 16px 45px 16px;
  }
}

.m-page-article {
  width: 100%;
}

.site-main .entry-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.site-main .entry-title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 767px) {
  .site-main .entry-title {
    font-size: 21px;
  }
}

.m-page-featured-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
}

.entry-content {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  word-wrap: break-word;
}

.entry-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 14px 0;
  padding-left: 12px;
  border-left: 4px solid #ed222b;
  line-height: 1.4;
}

.entry-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 22px 0 10px 0;
}

.entry-content p {
  margin-bottom: 15px;
  color: #4b5563;
  line-height: 1.75;
}

.entry-content strong {
  color: #111827;
  font-weight: 600;
}

.entry-content ul,
.entry-content ol {
  padding-left: 20px;
  margin: 0 0 20px 0;
  color: #374151;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Modern Tables in Pages */
.entry-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 18px 0 28px 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
  font-size: 13.5px !important;
}

.entry-content table th {
  background-color: #f9fafb !important;
  color: #111827 !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
  border: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-right: 1px solid #f3f4f6 !important;
  text-align: left !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.entry-content table th:last-child {
  border-right: none !important;
}

.entry-content table td {
  padding: 12px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f3f4f6 !important;
  border-right: 1px solid #f3f4f6 !important;
  color: #374151 !important;
  line-height: 1.5 !important;
}

.entry-content table td:last-child {
  border-right: none !important;
}

.entry-content table tr:last-child td {
  border-bottom: none !important;
}

.entry-content table tr:hover td {
  background-color: #fafbfc !important;
}

/* Info Cards / Contact Details */
.entry-content div[style*="background"] {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin-bottom: 22px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.entry-content div[style*="background"] p {
  margin-bottom: 10px !important;
}

.entry-content div[style*="background"] p:last-child {
  margin-bottom: 0 !important;
}

/* Action Buttons inside Pages */
.entry-content a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.entry-content a.button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* WooCommerce Cart Page Improvements inside m-container */
.woocommerce-cart .woocommerce {
  margin-top: 10px;
}

.woocommerce-cart .woocommerce-info {
  background: #f0fdf4 !important;
  border-top-color: #22c55e !important;
  color: #15803d !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
}

.woocommerce-cart a.button.wc-backward {
  background-color: #ed222b !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  margin-top: 15px !important;
  display: inline-block !important;
}
