/*
 Theme Name:   MonaTheme Child
 Theme URI:    https://mona.media/
 Description:  Child theme of MonaTheme for customizations.
 Author:       MONA.Media / Website
 Template:     monatheme
 Version:      1.0.0
*/

/* Place your custom CSS here or in separate files enqueued from functions.php */

#custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#custom-lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.wcgs-photo {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs  {
        margin: 0 -5px !important;
            font-size: 12px !important;
    }
}

.single_add_to_cart_button.button.alt:hover{
    background: #200d0d !important;
    color: #fff; /* giữ chữ rõ */
}



.banner-preview img {
    max-width: 300px;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px;
}


.review-summary {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    align-items: center;
}

.review-average {
    width: 150px;
    text-align: center;
}

.avg-number {
    font-size: 32px;
    font-weight: bold;
    color: orange;
}

.review-bars {
    flex: 1;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 5px;
}

.fill {
    height: 100%;
    background: orange;
}

.review-action {
    width: 180px;
    text-align: center;
}

.btn-review {
    background: #ff0000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}

.woocommerce-tabs ul.tabs li a {
    font-weight: 600;
    text-transform: uppercase;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

/* wrapper */
.custom-product-content {
    display: flex;
    flex-direction: column;
    gap: 30px; /* khoảng cách giữa các block */
    margin-top: 40px;
}

/* mỗi block */
.custom-product-content > div {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* title */
.custom-product-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ff0000;
    border-left: 4px solid #ff0000;
    padding-left: 10px;
}

/* bảng thuộc tính */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.shop_attributes th,
.shop_attributes td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* review box */
#reviews {
    margin-top: 10px;
}

/* textarea */
#review_form textarea {
    width: 100%;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ddd;
}

/* button */
#review_form .submit {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

#review_form .submit:hover {
    background: #cc0000;
}

/* FORM CART */
.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* QUANTITY */
.quantity {
    display: flex;
    align-items: center;
    border: 2px solid #ff0000;
    border-radius: 100px;
    overflow: hidden;
    height: 48px;
}

/* INPUT */
.quantity input.qty {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    color: #ff0000;
    background: transparent;
}

/* ẨN SPINNER */
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity input[type=number] {
    -moz-appearance: textfield;
}

/* NÚT +/- */
.qty-btn {
    width: 48px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: bold;
    color: #ff0000;
    cursor: pointer;
    transition: 0.2s;
}

/* hover */
.qty-btn:hover {
    background: #ff0000;
    color: #fff;
}


/* BUTTON ADD TO CART */
.single_add_to_cart_button {
    height: 48px;
    padding: 0 28px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover */
.single_add_to_cart_button:hover {
    background: #cc0000;
}

/* responsive */
@media (max-width: 480px) {
    .cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single_add_to_cart_button {
        width: 100%;
    }
}
/* FIX layout gallery + summary */
.product-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT */
.product-gallery {
    width: 50%;
}

/* RIGHT */
.product-summary {
    width: 50%;
}

/* QUAN TRỌNG: cho phần dưới xuống hàng */
.product-bottom {
    width: 100%;
    clear: both;
    margin-top: 40px;
}














/* ===== CONTAINER ===== */
.custom-single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== GALLERY ===== */
.woocommerce-product-gallery {
    background: #fff;
    border-radius: 10px;
}

/* ảnh chính */
.woocommerce-product-gallery__wrapper img {
    border-radius: 10px;
	padding: 10px
}

/* thumbnail */
.flex-control-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.flex-control-thumbs li img {
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
}

/* ===== SUMMARY ===== */
.summary {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* TITLE */
.product_title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* PRICE */
.price {
    color: #e60023;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.woocommerce-product-details__short-description {
    font-size: 14px;
    color: #555;
}

/* ===== FORM ===== */
.cart {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* QTY */
.quantity input {
    width: 60px;
    height: 35px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #ddd;
}

/* BUTTON ADD TO CART */
.single_add_to_cart_button {
    background: #0a58ca !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    transition: 0.3s;
}

.single_add_to_cart_button:hover {
    background: #084298 !important;
}

/* META */
.product_meta {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* ===== TAB ===== */
.woocommerce-tabs {
    grid-column: span 2;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

/* TAB MENU */
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.woocommerce-tabs ul.tabs li {
    list-style: none;
}

.woocommerce-tabs ul.tabs li a {
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
}

/* ===== REVIEW ===== */
#reviews {
    margin-top: 10px;
}

/* ===== RELATED ===== */
.related.products {
    grid-column: span 2;
    margin-top: 20px;
}

.related.products h2 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* GRID */
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .related.products ul.products {
        gap: 0px !important;
    }
}

/* CARD */
.related.products li.product {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: 0.3s;
}

.related.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* IMAGE */
.related.products img {
    border-radius: 10px;
}

/* TITLE */
.related.products h2 {
    font-size: 14px;
}

/* ===== ACTION BUTTON ===== */
.product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* BUY */
.btn-buy {
    border: 1px solid #200d0d;
    padding: 6px 14px;
    border-radius: 20px;
    color: #0a58ca;
    font-size: 13px;
}

.btn-buy:hover {
    background: #200d0d;
    color: #fff;
}

/* CART */
.btn-cart {
    width: 35px;
    height: 35px;
    border: 1px solid #0a58ca;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a58ca;
}

.btn-cart:hover {
    background: #0a58ca;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #product-560 {
        grid-template-columns: 1fr;
    }

    .woocommerce-tabs,
    .related.products {
        grid-column: span 1;
    }

    .related.products ul.products {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* CONTAINER */
.custom-single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .custom-single-product {
        padding: 0px !important;
    }
}

/* MAIN LAYOUT */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
}

/* GALLERY */
.product-gallery {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

/* IMAGE */
.woocommerce-product-gallery img {
    border-radius: 10px;
}

/* SUMMARY */
.product-summary {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* TITLE */
.product-summary h1 {
    font-size: 20px;
    font-weight: 600;
}

/* PRICE */
.product-summary .price {
    color: #e60023;
    font-size: 22px;
    font-weight: bold;
}

/* RATING */
.woocommerce-product-rating {
    font-size: 13px;
    color: #666;
}

/* STOCK */
.stock {
    color: red;
    font-size: 13px;
}

/* BUTTON */
.single_add_to_cart_button {
    background: #ff0000 !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
}

/* QTY */
.quantity input {
    border-radius: 20px;
    width: 60px;
    text-align: center;
}

/* META */
.product_meta {
    font-size: 13px;
}

/* BOTTOM TAB */
.product-bottom {
    margin-top: 20px;
}

/* TAB BOX */
.woocommerce-tabs {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

/* TAB TITLE */
.woocommerce-tabs ul.tabs li {
    border-radius: 20px;
    padding: 5px 15px;
}

/* REVIEW */
#reviews {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

/* wrapper nếu có */
.woocommerce-ordering {
    position: relative;
    display: inline-block;
}

/* SELECT */
.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #fff;

    font-size: 14px;
    color: #333;

    cursor: pointer;
    transition: all 0.3s ease;
}

/* hover */
.orderby:hover {
    border-color: #0a58ca;
}

/* focus */
.orderby:focus {
    outline: none;
    border-color: #0a58ca;
    box-shadow: 0 0 0 3px rgba(10,88,202,0.1);
}

/* custom arrow */
.woocommerce-ordering::after {
    content: "⌄";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #666;
}

/* option (limited support) */
.orderby option {
    padding: 10px;
}

.btn-cart {
    width: 38px;
    height: 38px;
    border: 1px solid #0a58ca;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #200d0d;
    transition: all 0.3s ease;
}

.btn-cart:hover svg {
    transform: scale(1.1);
}
.btn-cart svg {
    width: 18px;
    height: 18px;
}

.btn-cart:hover {
    background: #200d0d;
    color: #fff;
}

.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before {
    content: " ";
	display: none !important;
}

#wpadminbar #wp-admin-bar-wp-logo>.ab-item {
	display: none !important;
}

/* SIDEBAR BOX */
.shop-sidebar {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
}

/* BOX FILTER */
.shop-sidebar .filter-box {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

/* TITLE */
.shop-sidebar .filter-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
}

/* gạch dưới title */
.shop-sidebar .filter-box h3::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #200d0d;
    display: block;
    margin-top: 6px;
    border-radius: 2px;
}

/* CATEGORY LIST */
.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ITEM */
.product-categories li {
    margin-bottom: 8px;
}

/* LINK */
.product-categories li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    padding-left: 28px;
}

/* giả checkbox */
.product-categories li a::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 3px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* hover */
.product-categories li a:hover {
    background: #f1f5ff;
    color: #0a58ca;
}

/* active */
.product-categories .current-cat a {
    background: #200d0d;
    color: #fff;
}

/* checkbox active */
.product-categories .current-cat a::before {
    background: #fff;
    border-color: #fff;
}

/* icon check */
.product-categories .current-cat a::after {
    content: "✔";
    font-size: 10px;
    color: #ff0000;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
}


@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
    }
}


.woocommerce ul.products li.product .button {
	display:none;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-buy {
    border: 1px solid #200d0d;
    padding: 6px 14px;
    border-radius: 20px;
    color: #200d0d;
}

.btn-cart {
    border: 1px solid #200d0d;
    padding: 6px 10px;
    border-radius: 50%;
	content: "\e904";
}


.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: 100% !important;
}

.shop-layout {
    display: flex;
    gap: 20px;
}

.shop-sidebar {
    width: 260px;
    background: #FFFDF3;
    padding: 5px;
    border-radius: 10px;
}

.shop-content {
    flex: 1;
}

/* GRID sản phẩm */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.woocommerce ul.products li.product {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Ảnh */
.woocommerce ul.products li.product img {
    border-radius: 10px;
}

/* Giá */
.woocommerce ul.products li.product .price {
    color: red;
    font-weight: bold;
    font-size: 16px;
}

/* Nút */
.woocommerce ul.products li.product .button {
    border-radius: 25px;
    border: 1px solid #0a58ca;
    color: #0a58ca;
    background: transparent;
    padding: 8px 16px;
}

.woocommerce ul.products li.product .button:hover {
    background: #0a58ca;
    color: #fff;
}



.shop-banner {
    width: 100%;
    max-width: 1270px;
    aspect-ratio: 1920 / 500; /* chuẩn tỷ lệ */
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 12px;
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* tự crop */
    object-position: center;
    display: block;
}

.menu-item a[href*="/cua-hang/"] {
    background: #ff0000;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    left: 10px;
}

.menu-item a[href*="/cua-hang/"]:hover {
    background: #cc0000;
}

.wc-star::before {
    font-family: WooCommerce;
    content: "\e020";
    margin-left: 4px;
    font-size: 35px;
    color: #f5a623;
}



p.stars a {
    color: #ccc; /* sao chưa chọn */
    text-decoration: none;
}

p.stars a::before {
    font-family: WooCommerce;
    content: "\e021";
}

/* Hover */
p.stars:hover a {
    color: #f5a623;
}

/* Sao được chọn */
p.stars.selected a.active ~ a {
    color: #ccc;
}

p.stars.selected a.active,
p.stars.selected a.active::before {
    color: #f5a623;
}

/* Hover từng mức */
p.stars a:hover,
p.stars a:hover ~ a {
    color: #f5a623;
}



.bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #f5a623;
}

.bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: #f5a623;
    transition: width 0.3s ease;
}

.m-footer {
    margin-top: 100px;
}



.m-header .menu a {
    font-size: 14px !important; 
}


/* =========================
   GLOBAL RESET WOOCOMMERCE
========================= */
.woocommerce img {
    max-width: 100%;
    height: auto;
  }
  
  .woocommerce a {
    text-decoration: none;
  }
  
  .woocommerce button,
  .woocommerce input,
  .woocommerce select {
    font-size: 14px;
  }
  
  /* =========================
     GRID PRODUCT (SHOP)
  ========================= */
  .wc-block-product-template,
  .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .wc-block-product,
  .products .product {
    width: calc(25% - 15px);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
  }
  
  .wc-block-product:hover,
  .products .product:hover {
    transform: translateY(-5px);
  }
  
  /* =========================
     PRODUCT ITEM
  ========================= */
  .wc-block-components-product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .wc-block-components-product-price {
    color: #c00;
    font-weight: bold;
  }
  
  .wc-block-components-product-button__button {
    width: 100%;
    border-radius: 6px;
    padding: 10px;
  }
  
  /* =========================
     CART + CHECKOUT LAYOUT
  ========================= */
  .wc-block-components-sidebar-layout {
    display: flex;
    gap: 30px;
  }
  
  .wc-block-cart__main {
    flex: 2;
  }
  
  .wc-block-cart__sidebar {
    flex: 1;
  }
  
  /* =========================
     CART TABLE
  ========================= */
  .wc-block-cart-items {
    width: 100%;
  }
  
  .wc-block-cart-items__row {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
  }
  
  .wc-block-cart-item__image img {
    width: 80px;
  }
  
  .wc-block-cart-item__total {
    font-weight: bold;
    color: #c00;
  }
  
  /* =========================
     CHECKOUT FORM
  ========================= */
  .wc-block-checkout {
    display: flex;
    gap: 30px;
  }
  
  .wc-block-checkout__form {
    flex: 2;
  }
  
  .wc-block-checkout__sidebar {
    flex: 1;
  }
  
  /* =========================
     BUTTON
  ========================= */
  .wc-block-components-button,
  button,
  .button {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s;
  }
  
  .wc-block-components-button:hover {
    background: #a30000;
  }
  
  /* =========================
     TABLET (<=1024px)
  ========================= */
  @media (max-width: 1024px) {
  
    /* product */
    .wc-block-product,
    .products .product {
      width: calc(50% - 10px);
    }
  
    .wc-block-cart__sidebar,
    .wc-block-checkout__sidebar {
      width: 100%;
    }
  
    .wc-block-cart-items__row {
      display: flex;
      gap: 15px;
    }
  
    .wc-block-cart-item__image img {
      width: 70px;
    }
  }
  
  /* =========================
     MOBILE (<=767px)
  ========================= */
  @media (max-width: 767px) {
  
    /* ===== PRODUCT ===== */
    .wc-block-product,
    .products .product {
      width: 100%;
    }
  
    /* ===== CART TABLE → CARD ===== */
    .wc-block-cart-items thead {
      display: none;
    }
  
    .wc-block-cart-items__row {
      display: flex;
      flex-direction: column;
      border: 1px solid #eee;
      padding: 12px;
      margin-bottom: 15px;
      border-radius: 10px;
      background: #fff;
    }
  
    .wc-block-cart-item__image {
      text-align: center;
      margin-bottom: 10px;
    }
  
    .wc-block-cart-item__image img {
      width: 100px;
    }
  
    .wc-block-cart-item__product {
      text-align: center;
    }
  
    .wc-block-cart-item__quantity {
      justify-content: center;
      margin-top: 10px;
    }
  
    .wc-block-cart-item__total {
      text-align: center;
      margin-top: 10px;
    }
  
    /* ===== SIDEBAR ===== */
    .wc-block-components-sidebar-layout {
      flex-direction: column;
    }
  
    /* ===== BUTTON FULL WIDTH ===== */
    .wc-block-cart__submit-button,
    .wc-block-components-button {
      width: 100%;
    }
  
    /* ===== CHECKOUT ===== */
    .wc-block-checkout {
      flex-direction: column;
    }
  
    /* ===== STICKY CHECKOUT ===== */
    .wc-block-cart__submit-container--sticky {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 999;
      padding: 10px;
      background: #fff;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
  
    body {
      padding-bottom: 80px;
    }
  
    /* ===== CAROUSEL FIX ===== */
    .wc-block-product-template {
      overflow-x: auto;
      flex-wrap: nowrap;
    }
  
    .wc-block-product-template .wc-block-product {
      min-width: 70%;
    }
  }

  .woocommerce main,
.woocommerce-page main {
    padding-top: 0rem !important;
    transition: padding-top 0.3s;

    max-width: 90%;   /* thay width → max-width */
    width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

main {
    padding-top: 90px !important;
}

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    margin: 0px !important;
}

@media (max-width: 1024px) {
    .woocommerce main,
    .woocommerce-page main {
            padding-top: 90px !important;
        max-width: 100%;
        padding-top: 9rem;
    }
  }

  @media (max-width: 767px) {
    .woocommerce main,
    .woocommerce-page main {
        padding-top: 7rem;
        padding-left: 10px;
        padding-right: 10px;
    }
  }

  /* PC (mặc định 4 cột) */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* TABLET (≤1024px → 2 cột) */
@media (max-width: 1024px) {
  .woocommerce ul.products {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE (≤767px → 1 cột) */
@media (max-width: 767px) {
  .woocommerce ul.products {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

    .wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 80px 1fr 110px; /* ảnh - info - quantity */
        gap: 10px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    /* Ảnh */
    .wc-block-cart-item__image img {
        width: 70px;
        height: auto;
    }

    /* Tên sản phẩm */
    .wc-block-components-product-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
        display: block;
    }

    /* Giá */
    .wc-block-cart-item__prices {
        font-size: 13px;
        color: #555;
    }

    /* Ẩn mô tả cho gọn */
    .wc-block-components-product-metadata {
        display: none;
    }

    /* Quantity nằm bên phải */
    .wc-block-cart-item__quantity {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .wc-block-components-quantity-selector {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
    }

    .wc-block-components-quantity-selector__input {
        width: 35px;
        text-align: center;
        border: none;
    }

    .wc-block-components-quantity-selector__button {
        width: 28px;
        height: 28px;
    }

    /* Nút xóa (icon X góc ảnh) */
    .wc-block-cart-item__remove-link {
        position: absolute;
        top: 5px;
        left: 5px;
        background: #000;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wc-block-cart-item__image {
        position: relative;
    }

    .wc-block-cart-item__remove-link svg {
        width: 12px;
        height: 12px;
        fill: #fff;
    }

    /* Ẩn tổng tiền bên phải (vì đã có giá x SL) */
    .wc-block-cart-item__total {
        display: none;
    }
}


.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image, .is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image, .is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {

    padding: 2px;
}




/* ===== WRAPPER ===== */
.woocommerce-order {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== THÔNG BÁO SUCCESS ===== */
.woocommerce-notice--success {
    background: #e6f9f0;
    border: 1px solid #00a86b;
    color: #008a5c;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

/* ===== ORDER OVERVIEW ===== */
.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 15px;
    margin: 0 0 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}

.woocommerce-order-overview li {
    font-size: 14px;
    color: #555;
}

.woocommerce-order-overview strong {
    display: block;
    font-size: 15px;
    color: #000;
    margin-top: 4px;
}

/* ===== QR BLOCK ===== */
.woocommerce-vietqr-qr-scan {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

#qrcode img {
    max-width: 220px;
    border: 6px solid #f5f5f5;
    border-radius: 10px;
}

/* ===== BUTTON DOWNLOAD QR ===== */
#downloadQR {
    display: block !important;
    margin-top: 15px;
}

#btnDownloadQR {
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #0274be, #0099ff);
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border: none;
}

/* ===== BANK INFO ===== */
.woocommerce-vietqr-bank-details {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.woocommerce-vietqr-bank-details table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-vietqr-bank-details td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* ===== ORDER DETAILS TABLE ===== */
.woocommerce-order-details {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table th,
.woocommerce-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.woocommerce-table th {
    text-align: left;
    background: #fafafa;
}

/* ===== TOTAL HIGHLIGHT ===== */
.woocommerce-table tfoot tr:last-child td {
    font-size: 18px;
    font-weight: bold;
    color: #e53935;
}

/* ===== ADDRESS ===== */
.woocommerce-customer-details {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}


.woocommerce-column__title {
    font-size: 16px;
    margin-bottom: 10px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }

    #qrcode img {
        max-width: 180px;
    }

    .woocommerce-order {
        padding: 10px;
    }
}


.woocommerce table.shop_table th {
    background: #200d0d;
    color: #fff;
}


.cart-icon-css {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: relative;
    top: 5px;
}

.cart-icon-css::before {
    content: "";
    display: inline-block;
    width: 31px;
    height: 21px;

    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2zM7.17 14l.94-2h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20 3H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 14.37 5.48 16 7 16h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.05z'/></svg>") no-repeat center / contain;

            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2zM7.17 14l.94-2h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20 3H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 14.37 5.48 16 7 16h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.05z'/></svg>") no-repeat center / contain;
}

.cart-count {
    position: absolute;
    top: 14px;
    background: red;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 50%;
}


.price_slider {
    height: 4px;
    background: #ddd;
    position: relative;
    margin: 10px 0;
}

.ui-slider-range {
    background: #c59d5f;
    height: 100%;
}

.ui-slider-handle {
    width: 14px;
    height: 14px;
    background: #c59d5f;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    cursor: pointer;
}

.price_slider_amount .button {
    background: #cc0000;
    color: #fff;
}

.price_slider_amount .button:hover {
    background: #ff0000;
    color: #fff;
}


.woocommerce #respond
input#submit:hover, .woocommerce
a.button:hover, .woocommerce
button.button:hover, .woocommerce
input.button:hover {
background-color: #ff0000;
color: #fff;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid #ff0000 !important;
    background: #ff0000 !important;
    font-weight: normal;
    color: #fff;
}



element.style {
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    color: #515151;
    background-color: #e9e6ed;
}


.product-categories li a:hover {
    background: #200d0d;
    color: #fff;
}



.img-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.img-popup-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}


.custom-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.custom-popup img{
    max-width:90%;
    max-height:90%;
}

.close-popup{
    position:absolute;
    top:20px;
    right:30px;
    font-size:40px;
    color:#fff;
    cursor:pointer;
}



.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.custom-lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}


.branch-map {
  width: 100%;
  height: 450px; /* chỉnh theo ý */
  overflow: hidden;
}

.branch-map img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ảnh luôn fill khung */
  display: block;
}


#main.site-main {
    padding-top: 14rem !important; /* desktop */
    transition: padding-top 0.3s;
    max-width: 90% !important;
    width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* iPhone / mobile */
@media (max-width: 768px) {
    #main.site-main {
        padding-top: 16rem !important;
    }
}

/* Macbook nhỏ / tablet */
@media (max-width: 1024px) {
    #main.site-main {
        padding-top: 12rem !important;
    }
}



.lang-item-en a,
.lang-item-vi a {
    background-color: #200d0d !important;
}


/* CARD tổng */
.wc-block-product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding-bottom: 15px;
}

/* Hover nổi card */
.wc-block-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Ảnh sản phẩm */
.wc-block-components-product-image img {
    transition: transform 0.4s ease;
}

.wc-block-product:hover .wc-block-components-product-image img {
    transform: scale(1.05);
}

/* Title */
.wc-block-product h2 {
    font-size: 16px;
    font-weight: 600;
    padding: 0 10px;
}

.wc-block-product h2 a {
    color: #222;
    text-decoration: none;
}

.wc-block-product h2 a:hover {
    color: #c19a6b; /* màu brand coffee */
}

/* Giá */
.wc-block-components-product-price {
    font-weight: 700;
    color: #200d0d;
    margin-bottom: 10px;
}

/* Button */
.wc-block-components-product-button__button {
    background: #200d0d;
    color: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    border: none !important;
}

/* Hover button */
.wc-block-components-product-button__button:hover {
    background: #c19a6b;
    color: #fff;
    transform: translateY(-2px);
}

/* View cart link */
.added_to_cart {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #c19a6b;
}


/* Bo ảnh */
.wc-block-components-product-image {
    overflow: hidden;
}


.m-header .h-wrapper {
    padding-block: 1rem !important;
}




.vietqr-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.list-bank {
    display: flex;
    justify-content: center;
    align-items: center;
}

.list-bank-box {
    width: 80px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.list-bank-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.list-bank-box img[alt="PVcomBank Pay"] {
    display: none;
}

.list-bank:has(img[alt="PVcomBank Pay"]) {
    display: none;
}




.m-header .menu a {
    padding: 2.1rem;
}






.item_img {
    position: relative;
}

.hover-thumb {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: 0.3s;
}

.item_img:hover .hover-thumb {
    opacity: 1;
}


@media screen and (max-width: 1200px) {
    footer .content {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 1024px) {
    li.product {
        margin: 0px !important;
    }
}


@media (max-width: 1024px) {
    .m-header .logo {
        text-align: center;
    }

    .m-header .logo img {
        max-width: 180px; /* chỉnh size tùy bạn */
        height: auto;
        display: inline-block;
    }
}


@media (max-width: 1024px) {
    #main.site-main {
        padding-top: 0rem !important;
    }
}



/* CHỈ ẩn khi có data-vi (tức là đã dịch) */
.wc-block-cart-items__header th span[data-vi] {
    font-size: 0;
}

.wc-block-cart-items__header th span[data-vi]::after {
    content: attr(data-vi);
    font-size: 16px;
}



.menu_list {
    position: relative;
       min-width: 25rem!important;
}

/* thêm gap cho container cha */
.content {
    display: flex;
    gap: 10px;
}



/* link Điều khoản + Chính sách */
.wc-block-checkout__terms a {
    color: #0073e6;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* hover cho rõ ràng */
.wc-block-checkout__terms a:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* khi click */
.wc-block-checkout__terms a:active {
    opacity: 0.7;
}




/* Ẩn toàn bộ khối lỗi WooCommerce Blocks */
.wc-block-error.wc-block-components-error {
    display: none !important;
}


jQuery(document.body).on('added_to_cart', function () {

    // trigger reload WooCommerce blocks
    if (window.wc && wc.blocksCheckout) {
        wc.blocksCheckout.extensionCartUpdate({
            namespace: 'custom-refresh'
        });
    }

});




.wc-block-cart-items__row {
    font-size: 16px;
    padding: 15px 0;
}

.wc-block-cart-item__image {
    width: 140px !important;
    min-width: 140px;
}

.wc-block-cart-item__image img {
    width: 140px !important;
    height: auto;
}

.wc-block-components-product-name {
    font-size: 18px;
    font-weight: 600;
}

.wc-block-components-product-price__value {
    font-size: 16px;
}

.wc-block-components-quantity-selector__input {
    width: 60px;
    height: 40px;
    font-size: 16px;
}

.wc-block-components-quantity-selector__button {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.wc-block-cart-item__remove-link svg {
    width: 20px;
    height: 20px;
}















/* ===== BOX PRODUCT ===== */
.summary.entry-summary {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ===== TITLE ===== */
.product_title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== PRICE ===== */
.summary .price {
    color: #c40000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== VARIATION DROPDOWN ===== */
.variations select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 140px;
}

.reset_variations {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* ===== ADD TO CART LAYOUT ===== */
.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* ===== QUANTITY ===== */
.quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e60000;
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
}

.custom-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
}

/* ===== ADD TO CART BUTTON ===== */
.single_add_to_cart_button {
    background: #ff1a1a;
    border-radius: 999px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.single_add_to_cart_button:hover {
    background: #cc0000;
}

/* ===== META ===== */
.product_meta {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}






.menu_list .menu-link[href*="cua-hang"] {
    position: relative;
    left: 3px;
}




#agree_terms {
  width: 20px;
  height: 20px;
  cursor: pointer;
    appearance: auto !important;
}

/* Mobile + Tablet */
@media (max-width: 1024px) {
  #agree_terms {
    width: 25px !important;
    height: 25px !important;
  }
}




/* Tổng item */
.wc-block-components-order-summary-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* Ảnh */
.wc-block-components-order-summary-item__image {
  grid-column: 1;
}

.wc-block-components-order-summary-item__image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* Nội dung */
.wc-block-components-order-summary-item__description {
  grid-column: 2;
}

/* Tên sản phẩm */
.wc-block-components-product-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

/* Thuộc tính (trọng lượng) */
.wc-block-components-product-details {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* Giá từng sản phẩm */
.wc-block-cart-item__prices {
  font-size: 13px;
  color: #888;
}

/* Tổng tiền */
.wc-block-components-order-summary-item__total-price {
  grid-column: 3;
  text-align: right;
}

.wc-block-components-order-summary-item__total-price .price {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

/* Số lượng badge */
.wc-block-components-order-summary-item__quantity {
  background: #000;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -6px;
}

/* Fix position badge */
.wc-block-components-order-summary-item__image {
  position: relative;
}

.wc-block-cart__totals-title {
    font-size: 20px !important;
}


.wc-block-cart-items__header th span {
    font-size: 20px;
}



/* CARD SẢN PHẨM */
.wc-block-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* ẢNH */
.wc-block-grid__product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

/* TIÊU ĐỀ */
.wc-block-product h2 a {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    min-height: 44px; /* giữ chiều cao cố định */
}

/* GIÁ */
.wc-block-grid__product-price {
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
    min-height: 22px; /* QUAN TRỌNG: giữ layout khi chưa có giá */
}

/* NÚT */
.wc-block-components-product-button {
    margin-top: auto; /* đẩy nút xuống đáy */
}

.wc-block-components-product-button__button {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #800020;
}

.wc-block-components-product-button__button:hover {
    background: #800020;
    color: #fff;
}



.wc-block-product h2 {
    text-align: center;
}

.wc-block-product h2 a {
    display: block;
    font-size: 16px;
    line-height: 1.4;
}



@media (max-width: 768px) {

  .wc-block-cart-items__row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  /* Ảnh bên trái */
  .wc-block-cart-item__image {
    width: 80px !important;
    flex-shrink: 0;
  }

  .wc-block-cart-item__image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* Nội dung bên phải */
  .wc-block-cart-item__product {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* Tên sản phẩm */
  .wc-block-components-product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  /* Giá */
  .wc-block-cart-item__prices {
    font-size: 13px;
    color: #666;
  }

  /* Thuộc tính */
  .wc-block-components-product-metadata {
    font-size: 12px;
    color: #888;
  }

  /* Quantity nằm ngang */
  .wc-block-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
  }

  .wc-block-components-quantity-selector__input {
    width: 50px;
    text-align: center;
  }

  /* Tổng tiền bên phải */
  .wc-block-cart-item__total {
    min-width: 90px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
  }

}

@media (max-width: 1024px) {

  #main.site-main {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

}



/* Mobile + Tablet */
@media (max-width: 1024px) {

  .is-medium table.wc-block-cart-items .wc-block-cart-items__row,
  .is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
  .is-small table.wc-block-cart-items .wc-block-cart-items__row {
    
    padding: 16px !important; /* giảm lại cho gọn */
  }

}




@media (max-width: 1024px) {

  .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Tên sản phẩm */
  .wc-block-components-product-name {
    text-align: center;
    display: block;
  }

  /* Giá */
  .wc-block-cart-item__prices {
    text-align: center;
  }

  /* Thuộc tính */
  .wc-block-components-product-metadata {
    text-align: center;
  }

  /* Quantity + nút xoá */
  .wc-block-cart-item__quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
  }

}




@media (max-width: 1024px) {

  .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity,
  .is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity,
  .is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {

    padding: 0 !important;
    margin: 0 !important;
  }

}



@media (max-width: 1024px) {

  /* Sidebar full width */
  .wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Wrapper không bị tràn */
  .wc-block-components-totals-wrapper {
    width: 100%;
    overflow: hidden;
  }

  /* Item sản phẩm */
  .wc-block-components-order-summary-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Nội dung cho xuống dòng */
  .wc-block-components-order-summary-item__description {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* Giá không bị kéo ngang */
  .wc-block-components-order-summary-item__total-price {
    width: 100%;
    text-align: right;
  }

  /* Text dài tự xuống dòng */
  .wc-block-components-product-name,
  .wc-block-components-product-details,
  .wc-block-components-order-summary-item__individual-price {
    word-break: break-word;
  }

}



@media (max-width: 1024px) {

  .wc-block-components-order-summary-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  /* Ảnh bên trái */
  .wc-block-components-order-summary-item__image {
    width: 60px;
    flex-shrink: 0;
  }

  .wc-block-components-order-summary-item__image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* Nội dung giữa */
  .wc-block-components-order-summary-item__description {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  /* Tên sản phẩm */
  .wc-block-components-product-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3;
  }

  /* Giá dạng: 1000 × 999.000 */
  .wc-block-components-order-summary-item__individual-price {
    font-size: 13px;
    color: #666;
    word-break: break-word;
  }

  /* Thuộc tính */
  .wc-block-components-product-details {
    font-size: 12px;
    color: #888;
  }

  /* Tổng tiền bên phải */
  .wc-block-components-order-summary-item__total-price {
    min-width: 90px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
  }

}

@media (max-width: 1024px) {

  .wc-block-checkout {
    gap: 0 !important;
  }

}


.list-bank-box img {
  width: 100%;
  height: 40px;           /* chiều cao cố định */
  object-fit: contain;    /* giữ tỉ lệ logo */
}



/* CHỈ áp dụng PC */
@media (min-width: 1025px) {

  .wc-block-checkout {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 30px;
  }

  /* Khung trái (form) */
  .wc-block-checkout__main {
    width: 65% !important;
    flex: 0 0 65% !important;
  }

  /* Khung phải (sidebar) */
  .wc-block-checkout__sidebar {
    width: 35% !important;
    flex: 0 0 35% !important;
  }

}


/* KHUNG CHA */
.wc-block-components-order-summary-item {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

/* TEXT */
.wc-block-components-order-summary-item__description {
    min-width: 0;
    flex: 1;
}

/* TÊN SẢN PHẨM - nhỏ hơn */
.wc-block-components-product-name {
    font-size: clamp(12px, 1.3vw, 14px);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* GIÁ - nhỏ hơn */
.wc-block-components-order-summary-item__individual-price {
    font-size: clamp(11px, 1.2vw, 13px);
    white-space: normal;
    word-break: break-word;
}

/* TOTAL */
.wc-block-components-order-summary-item__total-price {
    font-size: clamp(12px, 1.3vw, 14px);
    text-align: right;
    white-space: nowrap;
}


.woocommerce .woocommerce-result-count {
    display:none;
}








@media (max-width: 768px){

  /* biến table thành dạng block */
  .variations {
    width: 100%;
    border: none;
  }

  .variations tbody,
  .variations tr,
  .variations td,
  .variations th {
    display: block;
    width: 100%;
  }

  /* label */
  .variations th.label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: left;
  }

  /* select */
  .variations td.value {
    margin-bottom: 12px;
  }

  .variations select {
    width: 100%;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0 10px;
    font-size: 14px;
  }

  /* nút clear */
  .reset_variations {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
  }

}



@media (min-width: 992px) {
    .menu-policy {
        margin-left: -30px;
    }

    #menu-ho-tro-khach-hang {
        margin-left: -30px;
    }

    #menu-ho-tro-khach-hang + * {
        margin-left: -30px;
    }
}



.woocommerce-variation-price {
    display: none !important;
}






.variation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variation-buttons button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.variation-buttons button:hover {
    border-color: #000;
}

.variation-buttons button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}



/* Bọc khung select */
.variations td.value {
    position: relative;
    max-width: 300px;
}

/* Style select chính */
.variations select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* Hover */
.variations select:hover {
    border-color: #999;
}

/* Focus (đang chọn) */
.variations select:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
    outline: none;
}

/* Icon mũi tên custom */
.variations td.value::after {
    content: "▾";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

/* Mobile tối ưu */
@media (max-width: 768px) {
    .variations select {
        font-size: 16px;
        padding: 14px 40px 14px 15px;
    }
}

