/*
Theme Name: De Cake Room Theme
Theme URI: https://decakeroom.com
Author: Antigravity Team
Author URI: https://decakeroom.com
Description: Custom WordPress Theme for De Cake Room - Artisan Pastry Bakery & Gift Points Loyalty System.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: decakeroom
Tags: e-commerce, bakery, tailwindcss, woocommerce, responsive
*/

/* Global Poppins Font Enforcement for Body Typography */
html, body, p, input, select, textarea, label, li, dt, dd {
  font-family: 'Poppins', sans-serif;
}
.font-sans {
  font-family: 'Poppins', sans-serif !important;
}

/* Sticky Header & Viewport Overflow Protection */
html, body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

nav.decakeroom-navbar,
nav.sticky,
.decakeroom-navbar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.admin-bar nav.decakeroom-navbar,
.admin-bar nav.sticky,
.admin-bar .decakeroom-navbar {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar nav.decakeroom-navbar,
  .admin-bar nav.sticky,
  .admin-bar .decakeroom-navbar {
    top: 46px !important;
  }
}

/* Signature Brand Font: Mali (Cả web các trang chữ xanh, tiêu đề & logo chân trang) */
.font-serif,
.font-brand,
.font-mali,
.brand-font,
.decakeroom-brand-font {
  font-family: 'Mali', cursive, sans-serif !important;
}

/* All blue headings, titles, links and action buttons across all pages */
.text-brand,
.text-brand-dark,
a.text-brand,
a.text-brand-dark,
h1.text-brand,
h2.text-brand,
h3.text-brand,
h4.text-brand,
h5.text-brand,
h6.text-brand,
h1.text-brand-dark,
h2.text-brand-dark,
h3.text-brand-dark,
h4.text-brand-dark,
h5.text-brand-dark,
.font-serif.text-brand,
.font-serif.text-brand-dark,
.footer-logo-title,
.decakeroom-brand-title,
footer h4,
footer h5,
.footer-heading,
.footer-copyright,
footer .footer-copyright,
footer .border-t {
  font-family: 'Mali', cursive, sans-serif !important;
}

/* Headings inside cards & articles (as shown in user screenshot) */
article h4.font-serif,
article h4 a,
.group h4.font-serif,
.group h3.font-serif {
  font-family: 'Mali', cursive, sans-serif !important;
}

/* Bulletproof Font Awesome Protection against font-family and font-weight overrides */
.fa,
.fas,
.fa-solid,
.far,
.fa-regular,
.fal,
.fad,
.fab,
.fa-brands,
i[class*="fa-"],
i[class^="fa-"],
span[class*="fa-"] {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}

.fa,
.fas,
.fa-solid,
i[class*="fa-"]:not(.fab):not(.far):not([class*="fa-brands"]):not([class*="fa-regular"]),
i[class^="fa-"]:not(.fab):not(.far):not([class*="fa-brands"]):not([class*="fa-regular"]) {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.far,
.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

.fab,
.fa-brands,
i.fab,
[class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Strict Logo Sizing Constraint for Header and Footer */
.custom-logo-link,
.custom-logo-link img,
.custom-logo,
nav img,
footer img {
  max-height: 4rem !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
}

/* Full Width for WooCommerce Cart, Checkout & Block Containers */
.woocommerce,
.woocommerce-cart,
.woocommerce-checkout,
.wc-block-cart,
.wp-block-woocommerce-cart,
.wc-block-checkout,
.wp-block-woocommerce-checkout,
.woocommerce-cart-form,
.cart-empty,
.wc-block-components-sidebar-layout,
.wc-block-cart__empty-cart-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* WooCommerce Cart & Checkout Styling */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  width: 100% !important;
}

p.cart-empty.woocommerce-info {
  background: #ebf3fc !important;
  border-top-color: #004E9F !important;
  color: #004E9F !important;
  padding: 1.5rem 2rem !important;
  border-radius: 1rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

p.return-to-shop {
  margin-top: 1.5rem !important;
}

p.return-to-shop a.button {
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.875rem 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  display: inline-block !important;
}

/* Custom scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #004E9F;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #003875;
}

/* WooCommerce My Account Custom Sidebar Navigation Styling */
.woocommerce-MyAccount-navigation {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.woocommerce-MyAccount-navigation ul li {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  align-items: center !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  text-decoration: none !important;
  background-color: #f9fafb !important;
  border: 1px solid #f3f4f6 !important;
  border-radius: 0.875rem !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background-color: #ebf3fc !important;
  color: #004E9F !important;
  border-color: #cce3f9 !important;
  transform: translateX(4px);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-color: #004E9F !important;
  box-shadow: 0 4px 12px rgba(0, 78, 159, 0.25) !important;
}

/* WooCommerce Form Inputs & Buttons */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  min-height: 46px;
  background-color: #ffffff;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: #004E9F;
  box-shadow: 0 0 0 3px rgba(0, 78, 159, 0.15);
}

.woocommerce button.button,
.woocommerce a.button {
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: background-color 0.2s ease !important;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover {
  background-color: #003875 !important;
}

/* Remove WooCommerce default inner box borders & padding on login/register forms */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p {
  font-size: 11px !important;
  color: #6b7280 !important;
  margin: 0.5rem 0 !important;
  line-height: 1.4 !important;
}

/* WooCommerce Cart Page UX Enhancements */
.woocommerce-cart table.cart td.actions .coupon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.woocommerce-cart table.cart td.actions .coupon input#coupon_code {
  width: 170px !important;
  min-width: 170px !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 1rem !important;
  font-size: 0.8125rem !important;
  border: 1px solid #d1d5db !important;
  outline: none !important;
}

/* Hide redundant 'Cập nhật giỏ hàng' button (Cart auto-updates on qty change) */
.woocommerce-cart button[name="update_cart"] {
  display: none !important;
}

/* Cart Totals Title & Table Styling */
.woocommerce-cart .cart_totals h2 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.375rem !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
  font-weight: 700 !important;
  color: #374151 !important;
}

/* Single Product Page Tabs Styling */
.woocommerce-tabs ul.tabs {
  border-bottom: 2px solid #f3f4f6 !important;
  display: flex !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  background: transparent !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
  display: none !important;
}

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

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li a {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
  padding: 0.5rem 0 !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.2s !important;
  display: inline-block !important;
}

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

.woocommerce-Tabs-panel {
  font-size: 0.9375rem !important;
  color: #374151 !important;
  line-height: 1.7 !important;
  padding: 0 !important;
}

/* Related Products Grid Fix */
.related.products,
.up-sells.products {
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid #f3f4f6 !important;
  width: 100% !important;
  clear: both !important;
}

.related.products h2,
.up-sells.products h2 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 1.5rem !important;
}

.related.products ul.products,
.up-sells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.related.products ul.products::before,
.related.products ul.products::after {
  display: none !important;
}

.related.products ul.products li.product,
.up-sells.products ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #ffffff !important;
  border: 1px solid #f3f4f6 !important;
  border-radius: 1.25rem !important;
  padding: 1rem !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.related.products ul.products li.product:hover,
.up-sells.products ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

.related.products ul.products li.product img,
.up-sells.products ul.products li.product img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 0.875rem !important;
  margin-bottom: 0.75rem !important;
}

.related.products ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product h2,
.related.products ul.products li.product h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.related.products ul.products li.product .price {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #004E9F !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
}

.related.products ul.products li.product .button,
.related.products ul.products li.product a.button {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

/* Single Product Page Add to Cart Form Enhancements */
.single-product form.cart {
  display: block !important;
  margin-top: 0 !important;
}

.single-product form.cart .quantity {
  margin: 0 !important;
}

.single-product form.cart .quantity input.qty {
  width: 76px !important;
  height: 48px !important;
  border-radius: 0.75rem !important;
  border: 1px solid #cbd5e1 !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  outline: none !important;
  padding: 0 !important;
  background-color: #f8fafc !important;
}

.single-product form.cart button.single_add_to_cart_button {
  height: 48px !important;
  background-color: #004E9F !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  padding: 0 2rem !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 78, 159, 0.25) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.single-product form.cart button.single_add_to_cart_button:hover {
  background-color: #003875 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 56, 117, 0.35) !important;
}

/* Hide WooCommerce default plain 'Xem giỏ hàng' link next to button after adding to cart */
a.added_to_cart,
.woocommerce a.added_to_cart {
  display: none !important;
}

/* Product Option Swatches (Pill Buttons) */
.decakeroom-swatch-pill {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  border-radius: 0.75rem !important;
  font-family: 'Poppins', sans-serif !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}
.decakeroom-swatch-pill:hover:not(:disabled):not(.is-disabled):not(.is-active) {
  border-color: #004E9F !important;
  color: #004E9F !important;
  background-color: #f0f7ff !important;
}
.decakeroom-swatch-pill.is-active {
  border: 2px solid #004E9F !important;
  background-color: #ebf3fc !important;
  color: #004E9F !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 1px #004E9F, 0 2px 8px rgba(0, 78, 159, 0.15) !important;
}
.decakeroom-swatch-pill:disabled,
.decakeroom-swatch-pill.is-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
}

/* Contact Only Consult Box Styling */
.decakeroom-contact-consult-box {
  display: block !important;
}
.single-product .single_variation_wrap.is-contact-only,
.single-product form.cart.is-contact-only .single_variation_wrap {
  display: block !important;
}

/* Modern Premium Quantity Stepper */
.decakeroom-qty-wrapper,
.decakeroom-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  height: 42px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  padding: 4px !important;
  gap: 4px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

.decakeroom-qty-wrapper .decakeroom-qty-btn,
.decakeroom-qty-stepper .decakeroom-qty-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 0.75rem !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.decakeroom-qty-wrapper .decakeroom-qty-btn:hover,
.decakeroom-qty-stepper .decakeroom-qty-btn:hover {
  background-color: #f1f5f9 !important;
  color: #004E9F !important;
  border-color: #cbd5e1 !important;
}

.decakeroom-qty-wrapper .decakeroom-qty-btn:active,
.decakeroom-qty-stepper .decakeroom-qty-btn:active {
  transform: scale(0.92) !important;
}

.decakeroom-qty-wrapper .quantity,
.decakeroom-qty-stepper .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  float: none !important;
}

.decakeroom-qty-wrapper input.qty,
.decakeroom-qty-stepper input.qty {
  width: 44px !important;
  height: 32px !important;
  line-height: 32px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
}

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

/* Cart Page Compact Quantity Stepper - Prevent input overlap on +/- buttons */
.decakeroom-cart-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.625rem !important;
  padding: 2px !important;
  gap: 2px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.decakeroom-cart-qty-stepper .decakeroom-mini-qty-btn {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 0.45rem !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
  transition: all 0.15s ease !important;
}

.decakeroom-cart-qty-stepper .decakeroom-mini-qty-btn:hover {
  background-color: #eff6ff !important;
  border-color: #004E9F !important;
  color: #004E9F !important;
}

.decakeroom-cart-qty-stepper .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
  float: none !important;
}

.decakeroom-cart-qty-stepper .quantity input.qty,
.woocommerce-cart .decakeroom-cart-qty-stepper .quantity input.qty {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

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

/* Cart Page Voucher Select Toolbar (Synchronized 38px Height, No Double Borders) */
.decakeroom-voucher-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.decakeroom-voucher-select,
.decakeroom-voucher-manual-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
  background-color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.decakeroom-voucher-select {
  padding: 0 2.25rem 0 0.875rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-position: right 0.65rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.15rem 1.15rem !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decakeroom-voucher-manual-input {
  padding: 0 0.875rem !important;
  width: 100%;
}

.decakeroom-voucher-select:focus,
.decakeroom-voucher-manual-input:focus {
  border-color: #004E9F !important;
  box-shadow: 0 0 0 3px rgba(0, 78, 159, 0.12) !important;
}

.decakeroom-voucher-apply-btn {
  height: 38px !important;
  padding: 0 1.25rem !important;
  border-radius: 0.5rem !important;
  background-color: #004E9F !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background-color 0.15s ease !important;
}

.decakeroom-voucher-apply-btn:hover {
  background-color: #003875 !important;
}

/* Dual Action Buttons (Thêm vào giỏ & Mua ngay - Cùng 1 hàng, to đẹp) */
.decakeroom-product-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.625rem !important; /* 10px on mobile */
  width: 100% !important;
  padding-top: 0.5rem !important;
}

@media (min-width: 640px) {
  .decakeroom-product-actions {
    gap: 0.875rem !important; /* 14px */
  }
}

.single-product form.cart .decakeroom-btn-cart,
.decakeroom-btn-cart.single_add_to_cart_button {
  min-height: 50px !important;
  height: 50px !important;
  background-color: #eff6ff !important; /* bg-sky-50 soft luxury */
  color: #004E9F !important;
  border: 2px solid #004E9F !important;
  border-radius: 1rem !important; /* rounded-2xl 16px */
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 2px 6px rgba(0, 78, 159, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
  padding: 0 0.5rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.single-product form.cart .decakeroom-btn-cart:hover,
.decakeroom-btn-cart.single_add_to_cart_button:hover {
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-color: #004E9F !important;
  box-shadow: 0 4px 14px rgba(0, 78, 159, 0.25) !important;
  transform: translateY(-1px) !important;
}

.single-product form.cart .decakeroom-btn-buy-now,
.decakeroom-btn-buy-now {
  min-height: 50px !important;
  height: 50px !important;
  background-color: #004E9F !important;
  color: #ffffff !important;
  border: 2px solid #004E9F !important;
  border-radius: 1rem !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 14px rgba(0, 78, 159, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
  padding: 0 0.5rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.single-product form.cart .decakeroom-btn-buy-now:hover,
.decakeroom-btn-buy-now:hover {
  background-color: #003875 !important;
  border-color: #003875 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 56, 117, 0.35) !important;
}

@media (min-width: 640px) {
  .single-product form.cart .decakeroom-btn-cart,
  .decakeroom-btn-cart.single_add_to_cart_button,
  .single-product form.cart .decakeroom-btn-buy-now,
  .decakeroom-btn-buy-now {
    min-height: 54px !important;
    height: 54px !important;
    font-size: 0.9375rem !important;
    gap: 0.5rem !important;
  }
}

/* Hide duplicate variation price down below since it's prominently updated at the top */
.woocommerce-variation.single_variation .woocommerce-variation-price {
  display: none !important;
}

/* Full Product Image Display Without Cropping (Main gallery only) */
#main-product-image,
.thumb-btn img {
  object-fit: contain !important;
}



/* WooCommerce Cart 2-Column Side-by-Side Layout CSS Enhancements */
.woocommerce-cart .woocommerce {
  width: 100% !important;
}

.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart table.cart {
  margin-bottom: 0 !important;
  border-collapse: collapse !important;
}

.woocommerce-cart table.cart td.product-remove a.remove {
  text-decoration: none !important;
}

/* Force Cart Product Images to Square with 8px Rounded Corners */
.woocommerce-cart table.cart td.product-name img,
.woocommerce-cart table.cart td.product-thumbnail img,
.woocommerce-cart table.cart img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 8px !important; /* Square with subtle 8px corners */
  object-fit: cover !important;
}

/* WooCommerce Notice Banner Styling */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: #004E9F !important;
  background-color: #ebf3fc !important;
  color: #003875 !important;
  border-radius: 0.875rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding: 0.875rem 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.375rem 0.875rem !important;
}

/* WooCommerce Catalog Ordering Select Box Alignment Fix */
.woocommerce-ordering {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  float: none !important;
}

.woocommerce-ordering select.orderby {
  height: 42px !important;
  padding: 0 2.25rem 0 1rem !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.875rem !important;
  outline: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23004E9F'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  line-height: 42px !important;
}

.woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select.orderby:focus {
  border-color: #004E9F !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 78, 159, 0.15) !important;
}

/* WooCommerce My Account Page Full Width & Wide Spacious Grid Layout */
.woocommerce-account .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

/* My Account Navigation Links Styling */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 0.875rem 1.25rem !important;
  border-radius: 0.875rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #374151 !important;
  background-color: #f9fafb !important;
  border: 1px solid #f3f4f6 !important;
  transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background-color: #004E9F !important;
  color: #ffffff !important;
  border-color: #004E9F !important;
  box-shadow: 0 4px 12px rgba(0, 78, 159, 0.25) !important;
}

/* Order Again Button & Order Details View Styling */
.order-again,
.woocommerce p.order-again {
  margin-top: 1.5rem !important;
}

.order-again a.button,
.woocommerce a.button.order-again {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #004E9F !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  box-shadow: 0 4px 12px rgba(0, 78, 159, 0.2) !important;
  transition: all 0.2s ease !important;
}

.order-again a.button:hover,
.woocommerce a.button.order-again:hover {
  background-color: #003875 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 56, 117, 0.3) !important;
}

.woocommerce-order-details table.shop_table {
  border-radius: 1rem !important;
  border: 1px solid #f3f4f6 !important;
  overflow: hidden !important;
}

/* WooCommerce Order Details Table Styling & Column Alignment */
.woocommerce-table--order-details {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 1rem !important;
  border: 1px solid #f3f4f6 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  border-color: #f3f4f6 !important;
}

.woocommerce-table--order-details th.product-name,
.woocommerce-table--order-details td.product-name {
  text-align: left !important;
}

.woocommerce-table--order-details th.product-total,
.woocommerce-table--order-details td.product-total {
  text-align: right !important;
}

/* Hide Star Ratings on Products Globally */
.star-rating,
.woocommerce-product-rating,
.product-rating,
.woocommerce .star-rating {
  display: none !important;
}

/* WooCommerce Checkout Base & Input Fields Styling */
.woocommerce-checkout {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout *,
.woocommerce-checkout *::before,
.woocommerce-checkout *::after {
  box-sizing: border-box !important;
}

.woocommerce-checkout .form-row {
  margin-bottom: 0.875rem !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-checkout label {
  display: block !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 0.375rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
}

.woocommerce-checkout label .required {
  color: #ef4444 !important;
  text-decoration: none !important;
  font-weight: bold !important;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="date"],
.woocommerce-checkout select:not(.select2-hidden-accessible),
.woocommerce-checkout textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  padding: 0.8125rem 1rem !important;
  font-size: 0.9375rem !important; /* 15px-16px prevents iOS Safari auto-zoom */
  color: #1e293b !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
  background-color: #ffffff !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:not(.select2-hidden-accessible):focus,
.woocommerce-checkout textarea:focus {
  border-color: #004E9F !important;
  box-shadow: 0 0 0 4px rgba(0, 78, 159, 0.15) !important;
}

/* Ensure Select2 hidden accessible element is strictly 1px and clipped, never expanding */
select.select2-hidden-accessible,
.woocommerce-checkout select.select2-hidden-accessible,
.woocommerce-checkout .form-row select.select2-hidden-accessible {
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: block !important;
}

.woocommerce-input-wrapper {
  position: relative !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Select2 Custom Styling on Checkout */
.woocommerce-checkout .select2-container,
.woocommerce-checkout .select2-container--default,
.woocommerce-checkout .select2 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  position: relative !important;
  height: 48px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 3.75rem 0 0.75rem !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: #004E9F !important;
  box-shadow: 0 0 0 4px rgba(0, 78, 159, 0.15) !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  position: static !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  line-height: 46px !important;
  padding-left: 0.25rem !important;
  padding-right: 0 !important;
  font-size: 0.9375rem !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 34px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #94a3b8 !important;
  background-color: transparent !important;
  cursor: pointer !important;
  z-index: 3 !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__clear:hover {
  color: #334155 !important;
  background-color: #f1f5f9 !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  height: 46px !important;
  width: 22px !important;
  top: 1px !important;
  right: 10px !important;
}

.woocommerce-checkout .select2-container--open .select2-dropdown,
.select2-container--default.select2-container--open .select2-dropdown {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.875rem !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.14) !important;
  margin-top: 4px !important;
  background-color: #ffffff !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown,
.select2-container--default .select2-search--dropdown {
  padding: 8px 10px !important;
  background-color: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field {
  width: 100% !important;
  height: 40px !important;
  padding: 0 0.875rem 0 2.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 0.65rem !important;
  font-size: 0.9375rem !important;
  line-height: 38px !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 0.75rem center !important;
  background-size: 16px 16px !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field:focus,
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  background-color: #ffffff !important;
  border-color: #004E9F !important;
  box-shadow: 0 0 0 3px rgba(0, 78, 159, 0.12) !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field::placeholder,
.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field::-webkit-input-placeholder,
.select2-container--default .select2-search--dropdown .select2-search__field::-webkit-input-placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field::-moz-placeholder,
.select2-container--default .select2-search--dropdown .select2-search__field::-moz-placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* Payment Methods List Styling */
.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  padding: 0.875rem 1rem !important;
  margin-bottom: 0.75rem !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease-in-out !important;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
  border-color: #004E9F !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-size: 0.875rem !important;
  text-transform: none !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  word-break: break-word !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  width: 1.125rem !important;
  height: 1.125rem !important;
  margin-right: 0.75rem !important;
  cursor: pointer !important;
  accent-color: #004E9F !important;
  flex-shrink: 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
  background-color: #ffffff !important;
  border: 1px solid #ebf3fc !important;
  border-radius: 0.875rem !important;
  padding: 0.75rem 1rem !important;
  margin-top: 0.625rem !important;
  font-size: 0.8125rem !important;
  color: #475569 !important;
  word-break: break-word !important;
}

/* Hide Broken WooCommerce Pseudo-Element Font Icons in Notices */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-notice::before,
.woocommerce-info:before,
.woocommerce-message:before,
.woocommerce-error:before,
.woocommerce-notice:before {
  display: none !important;
  content: "" !important;
}

/* Modern Notices and Alerts */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  padding: 1rem 1.25rem !important;
  border-radius: 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-bottom: 1.5rem !important;
  border-left: none !important;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.woocommerce-info {
  background-color: #ebf3fc !important;
  border: 1px solid #cce3f9 !important;
  color: #003875 !important;
}

.woocommerce-message {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
}

/* Force State Field (Tỉnh / Thành phố) to Always Remain Visible */
#billing_state_field,
#shipping_state_field,
.form-row#billing_state_field,
.form-row#shipping_state_field,
.woocommerce-address-fields #billing_state_field {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 💻 Fix WooCommerce Form Field Layout Grid Alignment on Desktop (>= 768px) */
@media (min-width: 768px) {
  .woocommerce-checkout .form-row-first {
    width: 48.5% !important;
    float: left !important;
  }

  .woocommerce-checkout .form-row-last {
    width: 48.5% !important;
    float: right !important;
  }

  .woocommerce-address-fields__field-wrapper,
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .woocommerce-address-fields__field-wrapper p.form-row,
  .woocommerce-billing-fields__field-wrapper p.form-row,
  .woocommerce-shipping-fields__field-wrapper p.form-row {
    margin-bottom: 0 !important;
    float: none !important;
    width: 100% !important;
  }

  .woocommerce-address-fields__field-wrapper .form-row-wide,
  .woocommerce-billing-fields__field-wrapper .form-row-wide,
  .woocommerce-shipping-fields__field-wrapper .form-row-wide,
  #billing_address_1_field,
  #billing_address_2_field,
  #billing_country_field,
  #shipping_address_1_field,
  #shipping_country_field,
  #order_comments_field {
    grid-column: span 2 / span 2 !important;
    width: 100% !important;
  }
}

/* 📱 Dedicated Mobile Responsive Guardrails for Checkout & Drawers */
#mobile-menu-drawer.invisible,
#shop-filter-drawer.invisible {
  display: none !important;
}

#mobile-menu-drawer,
#shop-filter-drawer {
  overflow: hidden !important;
  max-width: 100vw !important;
}

wc-order-attribution-inputs {
  display: none !important;
}

@media (max-width: 767px) {
  .woocommerce,
  .woocommerce-checkout,
  .woocommerce-checkout form.checkout,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout-review-order,
  .woocommerce-billing-fields,
  .woocommerce-shipping-fields,
  .woocommerce-additional-fields {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .woocommerce-address-fields__field-wrapper,
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce-checkout .form-row,
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last,
  .woocommerce-checkout .form-row-wide,
  .woocommerce-address-fields__field-wrapper p.form-row,
  .woocommerce-billing-fields__field-wrapper p.form-row,
  .woocommerce-shipping-fields__field-wrapper p.form-row,
  #billing_address_1_field,
  #billing_country_field,
  #shipping_address_1_field,
  #shipping_country_field,
  #order_comments_field {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.875rem !important;
    grid-column: auto !important;
    box-sizing: border-box !important;
  }

  .woocommerce-checkout-review-order {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-checkout #payment ul.payment_methods li {
    padding: 0.75rem 0.875rem !important;
  }

  .woocommerce-checkout #place_order {
    font-size: 0.95rem !important;
    padding: 0.95rem 1rem !important;
    border-radius: 1rem !important;
    width: 100% !important;
  }
}

/* Fix WooCommerce Order Review Product Thumbnail Size */
.woocommerce-checkout-review-order-table img,
.woocommerce-checkout .shop_table img,
.woocommerce-checkout-review-order img {
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  object-fit: cover !important;
  border-radius: 0.75rem !important;
  flex-shrink: 0 !important;
}

/* Navigation Menu Active & Hover Styling */
.decakeroom-nav-menu li a {
  position: relative;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s ease-in-out;
}

.decakeroom-nav-menu li a:hover {
  color: #004E9F;
}

.decakeroom-nav-menu li.current-menu-item > a,
.decakeroom-nav-menu li.current_page_item > a {
  color: #004E9F;
  font-weight: 700;
}

.decakeroom-nav-menu li.current-menu-item > a::after,
.decakeroom-nav-menu li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #004E9F;
}

/* Modern Pagination Styling */
ul.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.page-numbers li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

ul.page-numbers a.page-numbers,
ul.page-numbers span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

ul.page-numbers a.page-numbers:hover {
  background-color: #ebf3fc;
  color: #004E9F;
  border-color: #004E9F;
  transform: translateY(-1px);
}

ul.page-numbers span.page-numbers.current {
  background-color: #004E9F;
  color: #ffffff;
  border-color: #004E9F;
  box-shadow: 0 4px 6px -1px rgba(0, 78, 159, 0.3);
}

ul.page-numbers .dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #9ca3af;
}

/* Anti-Boxy Custom WooCommerce Mobile Cart & Checkout Summary Override */
.woocommerce-cart .shop_table,
.woocommerce-checkout .shop_table {
  border: none !important;
  border-radius: 0 !important;
}

.woocommerce-cart .shop_table tr,
.woocommerce-checkout .shop_table tr {
  border-bottom: 1px solid #f3f4f6 !important;
}

.woocommerce-cart .shop_table td,
.woocommerce-cart .shop_table th,
.woocommerce-checkout .shop_table td,
.woocommerce-checkout .shop_table th {
  border: none !important;
}

@media screen and (max-width: 767px) {
  .woocommerce-cart table.shop_table_responsive,
  .woocommerce-cart table.shop_table_responsive tbody,
  .woocommerce-cart table.shop_table_responsive tr,
  .woocommerce-cart table.shop_table_responsive td {
    display: block !important;
    width: 100% !important;
    border: none !important;
  }

  .woocommerce-cart table.shop_table_responsive thead {
    display: none !important;
  }

  /* Cart Items Row on Mobile */
  .woocommerce-cart table.shop_table_responsive tr.cart_item {
    position: relative !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item:last-child {
    border-bottom: none !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td {
    padding: 0.25rem 0 !important;
    text-align: left !important;
    background: transparent !important;
  }

  /* Remove ugly WooCommerce data-title pseudoelement boxes */
  .woocommerce-cart table.shop_table_responsive tr.cart_item td::before,
  .woocommerce-cart table.shop_table_responsive td[data-title]::before {
    display: none !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name {
    padding-right: 2.25rem !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-price {
    display: none !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-quantity {
    display: inline-block !important;
    width: auto !important;
    float: left !important;
    margin-top: 0.5rem !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-subtotal {
    display: inline-block !important;
    width: auto !important;
    float: right !important;
    margin-top: 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #004E9F !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0 !important;
    width: auto !important;
    padding: 0 !important;
  }

  .woocommerce-cart table.shop_table_responsive tr.cart_item::after {
    content: "";
    display: table;
    clear: both;
  }
}

/* ==========================================================================
   Global Mobile Responsive 2-Column Grid Guardrail for Product Catalogs
   ========================================================================== */
@media (max-width: 639px) {
  .mobile-2col-grid,
  .mobile-shop-2col-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cat-tabs-scroll,
  .shop-cat-tabs-scroll {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
  }
}

/* ==========================================================================
   Universal Multi-Line Clamp Utilities (3-Line with Ellipsis)
   ========================================================================== */
.line-clamp-1 {
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

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

.line-clamp-3,
.decakeroom-product-desc-clamp {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.45 !important;
  max-height: calc(1.45em * 3) !important;
  word-break: break-word !important;
}

.line-clamp-4 {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Product Card Price Display - Full Responsive Without Truncation */
.decakeroom-card-price {
  display: block !important;
  line-height: 1.25 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.decakeroom-card-price .woocommerce-Price-amount {
  white-space: nowrap !important;
  display: inline-block !important;
}

/* Strikethrough for original price on sale products */
.decakeroom-card-price del {
  display: block !important;
  font-size: 0.82em !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin-bottom: 1px !important;
}

.decakeroom-card-price del,
.decakeroom-card-price del *,
.decakeroom-card-price del .woocommerce-Price-amount,
.decakeroom-card-price del .woocommerce-Price-amount bdi,
.decakeroom-card-price del .woocommerce-Price-currencySymbol {
  text-decoration: line-through !important;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: #94a3b8 !important;
  -webkit-text-decoration-line: line-through !important;
  -webkit-text-decoration-color: #94a3b8 !important;
  color: #94a3b8 !important;
}

.decakeroom-card-price del .woocommerce-Price-amount {
  display: inline !important;
  white-space: nowrap !important;
}

.decakeroom-card-price ins {
  display: block !important;
  text-decoration: none !important;
  -webkit-text-decoration-line: none !important;
  line-height: 1.2 !important;
}

.decakeroom-card-price ins,
.decakeroom-card-price ins *,
.decakeroom-card-price ins .woocommerce-Price-amount,
.decakeroom-card-price ins .woocommerce-Price-amount bdi,
.decakeroom-card-price ins .woocommerce-Price-currencySymbol {
  text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration-line: none !important;
}

/* ==========================================================================
   Live Mini-Cart Dropdown & Pop-up Animation
   ========================================================================== */
.decakeroom-cart-dropdown {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.decakeroom-cart-dropdown.show-cart,
.decakeroom-cart-dropdown.is-open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.decakeroom-cart-dropdown.force-closed,
.decakeroom-cart-dropdown.is-closed {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.96) !important;
}

@media (max-width: 767px) {
  .decakeroom-cart-dropdown.show-cart,
  .decakeroom-cart-dropdown.is-open {
    position: fixed !important;
    top: 64px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 99999 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  }
}

/* ==========================================================================
   Clean Modern Remove Button (Overrides default WooCommerce harsh red circle)
   ========================================================================== */
.woocommerce a.remove,
.woocommerce-page a.remove,
.woocommerce-cart a.remove,
.decakeroom-cart-remove-item,
a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  font-weight: normal !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce a.remove:hover,
.woocommerce-page a.remove:hover,
.woocommerce-cart a.remove:hover,
.decakeroom-cart-remove-item:hover,
a.remove:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15) !important;
  transform: translateY(-1px) !important;
}

.woocommerce a.remove:active,
.decakeroom-cart-remove-item:active {
  transform: translateY(0) scale(0.96) !important;
}

.woocommerce a.remove::before,
.woocommerce-page a.remove::before,
.woocommerce-cart a.remove::before,
.decakeroom-cart-remove-item::before,
a.remove::before {
  display: none !important;
  content: none !important;
}

.woocommerce a.remove svg,
.woocommerce-cart a.remove svg,
.decakeroom-cart-remove-item svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Refined Mobile Filter & Sort Toolbar
   ========================================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.mobile-sort-capsule .woocommerce-ordering {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
}

.mobile-sort-capsule .woocommerce-ordering select.orderby {
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 1.6rem 0 0.75rem !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 9999px !important;
  background-size: 0.75rem !important;
  background-position: right 0.45rem center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.mobile-sort-capsule .woocommerce-ordering select.orderby:focus,
.mobile-sort-capsule .woocommerce-ordering select.orderby:hover {
  border-color: #004E9F !important;
  box-shadow: 0 0 0 2px rgba(0, 78, 159, 0.1) !important;
}

/* Product Showcase Card Thumbnail - Khung vuong 1:1 can giua dong bo voi Anh san pham trong WP Admin */
.decakeroom-product-card-thumb {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
}

.decakeroom-product-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}















