/* ==========================================================================
   In Bao Lì Xì — WooCommerce: thẻ sản phẩm, shop, chi tiết, giỏ/thanh toán
   ========================================================================== */

/* ---------- thẻ sản phẩm ---------- */
.ad-card { position: relative; width: 100%; height: 100%; text-align: left; border-radius: 10px; overflow: hidden; padding: 5px; background: var(--ad-tint); display: flex; flex-direction: column; }
.ad-flash .ad-card, .ad-reviews .ad-card { background: transparent; padding: 0; }
.ad-card__thumb { position: relative; overflow: hidden; border-radius: 5px; background: linear-gradient(180deg, #c4c4c4 0, #fff 100%); margin-bottom: 10px; }
.ad-card__imgs { display: block; position: relative; padding-bottom: 134%; }
.ad-card__imgs img {
	position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain;
	opacity: 0; transform: translateX(20px); transition: all .4s cubic-bezier(.3, 1, .3, 1);
}
.ad-card__imgs img.is-active { opacity: 1; transform: none; z-index: 1; }
.ad-card__zones { position: absolute; inset: 0; display: flex; z-index: 3; cursor: pointer; }
.ad-card__zones span { flex: 1; }
.ad-card__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 4; }
.ad-card__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .5); transition: .3s; }
.ad-card__dots span.is-active { width: 18px; border-radius: 10px; background: var(--ad-primary); }
.ad-card__sale { position: absolute; top: 5px; left: 5px; z-index: 5; background: var(--ad-price); color: #fff; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 50px; box-shadow: 0 0 5px 1px #fff; }
.ad-card__actions { position: absolute; top: 10px; right: -100px; z-index: 6; display: flex; flex-direction: column; gap: 5px; opacity: 0; transition: all .4s; }
.ad-card__act {
	width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; margin: 0; min-height: 0; cursor: pointer;
	background: var(--ad-primary); color: #fff !important; display: flex; align-items: center; justify-content: center; transition: .3s;
}
.ad-card__act .ad-ico { width: 20px; height: 20px; }
.ad-card__act:hover { background: var(--ad-accent); }
.ad-wish-btn .ad-ico-heart-f { display: none; }
.ad-wish-btn.is-active .ad-ico-heart { display: none; }
.ad-wish-btn.is-active .ad-ico-heart-f { display: inline-block; color: #ff4d4d; }
.ad-card__act.ad-wish-btn.is-active:hover .ad-ico-heart-f { color: #fff; }
@media (min-width: 992px) { .ad-card:hover .ad-card__actions { opacity: 1; right: 10px; } }
@media (max-width: 991px) { .ad-card__actions { opacity: 1; right: 6px; top: 6px; } .ad-card__act { width: 32px; height: 32px; } .ad-card__act.quick-view { display: none; } }

.ad-card__sold { background: #fff; border-radius: 5px; padding: 5px 10px; margin-bottom: 10px; }
.ad-card__sold-text { display: block; font-weight: 700; margin-bottom: 3px; font-size: 13px; }
.ad-card__sold-bar { display: block; height: 8px; border-radius: 5px; background: #dfdfdf; overflow: hidden; }
.ad-card__sold-bar span {
	display: block; height: 100%; border-radius: 5px; background-color: var(--ad-primary);
	background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
	background-size: 20px 20px; animation: ad-bar 2s linear infinite;
}
@keyframes ad-bar { from { background-position: 0 0; } to { background-position: 40px 0; } }

.ad-card__info { position: relative; padding: 10px; background: #fff; border-radius: 5px; margin-top: auto; }
.ad-card__name { margin: 0 0 5px; padding-right: 50px; font-size: 16px; font-weight: 400; line-height: 1.4; }
.ad-card__name a { color: #000; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card__name a:hover { color: var(--ad-accent); }
.ad-card__price { padding-right: 50px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.ad-price, .ad-price .amount { font-size: 16px; font-weight: 700; color: var(--ad-price); }
.ad-price-old, .ad-price-old .amount { color: #999; font-size: 14px; font-weight: 400; }
.ad-card__btns { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; }
.ad-card__cart {
	min-width: 40px; width: 40px; height: 40px; border-radius: 10px; padding: 7px; border: 0;
	background: var(--ad-primary); color: #fff !important; display: flex; align-items: center; justify-content: center; transition: .3s;
}
.ad-card__cart .ad-ico { width: 22px; height: 22px; }
.ad-card__cart:hover { background: var(--ad-accent); }
.ad-card__cart.loading { opacity: .6; pointer-events: none; }
.ad-card__cart.added::after, .ad-card .added_to_cart { display: none !important; }
@media (max-width: 767px) {
	.ad-card__name { font-size: 14px; padding-right: 34px; }
	.ad-card__price { padding-right: 34px; }
	.ad-price, .ad-price .amount { font-size: 14px; }
	.ad-price-old, .ad-price-old .amount { font-size: 12px; }
	.ad-card__cart { min-width: 30px; width: 30px; height: 30px; padding: 5px; border-radius: 8px; }
	.ad-card__cart .ad-ico { width: 18px; height: 18px; }
}
.ad-empty { color: #666; padding: 20px 0; }

/* ---------- trang shop ---------- */
.ad-shop__banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.ad-shop__banner img { aspect-ratio: 16/7; object-fit: cover; }
.ad-shop__featured { margin-bottom: 40px; }
.ad-shop__main { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 60px; }
.ad-shop__side { flex: 0 0 calc(25% - 15px); max-width: calc(25% - 15px); position: sticky; top: 110px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--ad-primary) transparent; }
.ad-shop__side-head { display: none; }
.ad-shop__content { flex: 1; min-width: 0; }
.ad-side-heading { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.ad-side-cats > li > ul { list-style: none; margin: 6px 0 0 12px; padding: 0; display: none; }
.ad-side-cats > li.is-open > ul { display: block; }
.ad-side-cats > li > ul li { margin: 0; padding: 4px 0; }
.ad-side-cats > li > ul a { font-size: 14px; color: #333; }
.ad-side-cats__toggle { position: absolute; right: 0; top: 4px; width: 26px; height: 26px; padding: 0; margin: 0; min-height: 0; border: 0; background: none; color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ad-side-cats__toggle .ad-ico { width: 16px; height: 16px; }
.ad-side-cats__toggle .ad-ico-minus, .ad-side-cats li.is-open > .ad-side-cats__toggle .ad-ico-plus { display: none; }
.ad-side-cats li.is-open > .ad-side-cats__toggle .ad-ico-minus { display: inline-block; }
.ad-filter-list { list-style: none; margin: 0; padding: 0; }
.ad-filter-list li { margin: 0 0 6px; }
.ad-check { display: flex; align-items: center; gap: 8px; color: #000; font-size: 14px; }
.ad-check span { width: 16px; height: 16px; border: 1px solid #999; border-radius: 3px; flex: 0 0 auto; position: relative; background: #fff; }
.ad-check.is-on span { background: var(--ad-primary); border-color: var(--ad-primary); }
.ad-check.is-on span::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ad-filter-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ad-filter-chips li { margin: 0; }
.ad-filter-chips a { display: block; padding: 4px 10px; border-radius: 5px; border: 1px solid #e3dccf; font-size: 13px; color: #000; background: #fff; }
.ad-filter-chips a:hover, .ad-filter-chips a.is-on { background: var(--ad-primary); color: #fff; border-color: var(--ad-primary); }

.ad-shop__toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.ad-shop__filter-btn { display: none; align-items: center; gap: 6px; margin: 0; min-height: 0; padding: 6px 14px; border-radius: 5px; background: var(--ad-primary); color: #fff; border: 0; font-size: 14px; text-transform: none; letter-spacing: 0; }
.ad-sorting { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-sorting__lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.ad-sorting ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ad-sorting li { margin: 0; }
.ad-sorting a { display: block; padding: 4px 10px; border-radius: 5px; border: 1px solid #e3dccf; background: #fff; font-size: 13px; color: #000; }
.ad-sorting a:hover, .ad-sorting a.is-on { background: var(--ad-primary); border-color: var(--ad-primary); color: #fff; }
.ad-empty-box { text-align: center; background: #fff; border-radius: 10px; padding: 40px 20px; }
.ad-term-desc { margin-top: 30px; background: #fff; padding: 20px; border-radius: 10px; }
.ad-shop__overlay { display: none; }
@media (max-width: 991px) {
	.ad-shop__banners { gap: 10px; margin-bottom: 25px; }
	.ad-shop__side {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 1001; width: 320px; max-width: 86vw; max-height: none; flex: none;
		background: var(--ad-body); padding: 15px; transform: translateX(-105%); transition: transform .3s;
	}
	.ad-filter-open .ad-shop__side { transform: none; }
	.ad-shop__side-head { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; margin-bottom: 15px; }
	.ad-shop__side-close { background: none; border: 0; padding: 0; margin: 0; min-height: 0; width: 32px; height: 32px; }
	.ad-shop__side-close .ad-ico { width: 24px; height: 24px; }
	.ad-shop__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1000; }
	.ad-filter-open .ad-shop__overlay { display: block; }
	.ad-shop__filter-btn { display: inline-flex; }
	.ad-shop__toolbar { align-items: flex-start; }
	.ad-sorting__lbl { display: none; }
	.ad-sorting ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.ad-sorting a { white-space: nowrap; }
}

/* ---------- trang chi tiết ---------- */
.ad-theme.single-product .shop-container, .ad-theme.single-product .product-container { padding: 0; }
.ad-single__top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 40px; }
.ad-single__media { flex: 0 0 calc(66.666% - 10px); max-width: calc(66.666% - 10px); }
.ad-single__summary { flex: 1; min-width: 0; position: sticky; top: 110px; }
.ad-gallery { display: flex; gap: 10px; }
.ad-gallery__main { flex: 1; min-width: 0; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #c4c4c4 0, #fff 100%); }
.ad-gallery__main:not(.flickity-enabled) .ad-gallery__slide:not(:first-child) { display: none; }
.ad-gallery__slide { width: 100%; }
.ad-gallery__slide a { display: block; position: relative; padding-bottom: 115%; }
.ad-gallery__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ad-gallery__thumbs { flex: 0 0 22%; display: flex; flex-direction: column; gap: 10px; max-height: 760px; overflow-y: auto; scrollbar-width: thin; }
.ad-gallery__thumb { display: block; position: relative; padding: 0; margin: 0; min-height: 0; border: 1px solid transparent; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #c4c4c4 0, #fff 100%); cursor: pointer; aspect-ratio: 3/4; flex: 0 0 auto; }
.ad-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ad-gallery__thumb.is-active { border-color: var(--ad-accent); }
.ad-single__box { background: #fff; border-radius: 10px; padding: 15px; }
.ad-single__title { font-size: 24px; font-weight: 400; margin: 0 0 8px; color: #000; line-height: 1.35; }
.ad-single__meta { display: flex; flex-wrap: wrap; gap: 5px 15px; font-size: 13px; color: #555; margin-bottom: 6px; }
.ad-single__price { margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.ad-single__price .ad-price, .ad-single__price .ad-price .amount { font-size: 26px; }
.ad-single__price .ad-price-old .amount { font-size: 16px; }
.ad-promo { border: 1px dashed var(--ad-accent); border-radius: 10px; padding: 22px 12px 10px; position: relative; margin: 20px 0 12px; }
.ad-promo__title { position: absolute; top: -14px; left: 10px; background: var(--ad-primary); color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 5px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ad-promo ul { list-style: none; margin: 0; padding: 0; }
.ad-promo li { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 13px; }
.ad-promo li .ad-ico { color: var(--ad-primary); width: 16px; height: 16px; }
.ad-single__social { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 12px; }
.ad-single__social .ad-ico { color: #f6a623; }
.ad-single__excerpt { font-size: 14px; color: #333; }

/* form thêm giỏ */
.ad-single__cart form.cart { margin: 0; }
.ad-single__cart table.variations { border: 0; margin-bottom: 10px; }
.ad-single__cart table.variations tr { display: block; margin-bottom: 8px; }
.ad-single__cart table.variations th, .ad-single__cart table.variations td { display: block; padding: 0; border: 0; text-align: left; line-height: 1.5; }
.ad-single__cart table.variations th label { font-weight: 700; font-size: 14px; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.ad-single__cart .reset_variations { font-size: 12px; color: var(--ad-price); margin-left: 6px; }
.ad-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-swatch { margin: 0; min-height: 0; padding: 6px 14px; border-radius: 6px; border: 1px solid #d8d0c2; background: #fff; color: #000; font-size: 14px; line-height: 1.4; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ad-swatch:hover { border-color: var(--ad-primary); }
.ad-swatch.is-on { background: var(--ad-primary); color: #fff; border-color: var(--ad-primary); }
.ad-swatch.is-disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.ad-single__cart .woocommerce-variation-price { margin-bottom: 8px; }
.ad-single__cart .single_variation_wrap .woocommerce-variation-availability { font-size: 13px; }
.ad-single__cart .woocommerce-variation-add-to-cart, .ad-single__cart form.cart:not(.variations_form) {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.ad-single__cart .single_add_to_cart_button {
	flex: 1; height: 44px; min-height: 0; margin: 0 !important; border-radius: 8px !important; background: var(--ad-primary) !important; color: #fff;
	font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.ad-single__cart .single_add_to_cart_button:hover { background: var(--ad-accent) !important; }
.ad-buy-now {
	width: 100%; height: 44px; min-height: 0; margin: 0; border-radius: 30px; border: 1px solid var(--ad-primary); background: #fff; color: var(--ad-primary);
	font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; transition: .3s;
}
.ad-buy-now:hover { background: var(--ad-primary); color: #fff; }
.ad-single__wish { margin: 12px 0; }
.ad-wish-inline { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; margin: 0; min-height: 0; color: #333; font-size: 14px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ad-wish-inline .ad-ico { width: 20px; height: 20px; color: var(--ad-primary); }
.ad-wish-inline.is-active .ad-ico-heart-f { color: #ff4d4d; }
.ad-services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.ad-services li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px; border-radius: 8px; background: var(--ad-tint); font-size: 13px; }
.ad-services .ad-ico { color: var(--ad-primary); width: 20px; height: 20px; }

/* tab chi tiết */
.ad-tabs { margin-bottom: 50px; }
.ad-tabs__nav { display: flex; justify-content: center; gap: 30px; border-bottom: 1px solid #ccc; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.ad-tabs__link {
	position: relative; margin: 0; min-height: 0; padding: 10px 6px; background: none; border: 0; font-size: 18px; font-weight: 400; color: #000;
	text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer;
}
.ad-tabs__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ad-accent); transform: scaleX(0); transition: .3s; }
.ad-tabs__link.is-active { color: var(--ad-accent); }
.ad-tabs__link.is-active::after { transform: none; }
.ad-tabs__panel { display: none; font-size: 15px; line-height: 1.7; }
.ad-tabs__panel.is-active { display: block; }
.ad-single__related { margin-bottom: 50px; }
@media (max-width: 991px) {
	.ad-single__top { flex-direction: column; }
	.ad-single__media { max-width: 100%; width: 100%; flex-basis: auto; }
	.ad-single__summary { position: static; width: 100%; }
}
@media (max-width: 767px) {
	.ad-gallery { flex-direction: column; }
	.ad-gallery__thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
	.ad-gallery__thumb { width: 70px; }
	.ad-single__title { font-size: 20px; }
	.ad-tabs__nav { justify-content: flex-start; gap: 15px; }
	.ad-tabs__link { font-size: 16px; }
	.ad-services { grid-template-columns: 1fr; }
}

/* đánh giá Woo */
.ad-theme #reviews .commentlist { padding: 0; }
.ad-theme #reviews .comment-form input, .ad-theme #reviews .comment-form textarea { border-radius: 8px; }
.ad-theme #reviews .form-submit input[type=submit], .ad-theme .button.primary, .ad-theme button.button.alt, .ad-theme .checkout-button, .ad-theme #place_order {
	background: var(--ad-primary) !important; border-radius: 8px; text-transform: none; letter-spacing: 0;
}
.ad-theme .button.primary:hover, .ad-theme .checkout-button:hover, .ad-theme #place_order:hover { background: var(--ad-accent) !important; }
.ad-theme .star-rating span::before, .ad-theme .stars a { color: #ffc800; }

/* ---------- mini cart off-canvas ---------- */
.ad-cart-popup { background: #fff; height: 100%; display: flex; flex-direction: column; padding: 20px; }
.ad-cart-popup__head { font-size: 22px; font-weight: 700; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #eee; color: var(--ad-primary); }
.ad-off-cart .mfp-content { width: 380px; max-width: 92vw; }
.ad-theme .widget_shopping_cart .woocommerce-mini-cart__buttons .button { border-radius: 8px; text-transform: none; letter-spacing: 0; }
.ad-theme .widget_shopping_cart .woocommerce-mini-cart__buttons .checkout { background: var(--ad-primary); }
.ad-theme .widget_shopping_cart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; color: var(--ad-primary); border: 1px solid var(--ad-primary); }
.ad-theme .woocommerce-mini-cart-item a:not(.remove) { color: #000; font-weight: 700; }
.ad-theme .woocommerce-mini-cart__total { border-top: 1px solid #eee; padding-top: 12px; }
.ad-theme .woocommerce-mini-cart__total .amount { color: var(--ad-price); font-weight: 700; }

/* ---------- giỏ / thanh toán / tài khoản ---------- */
.ad-theme.woocommerce-cart .cart-container, .ad-theme.woocommerce-checkout .checkout-page-title + .cart-container,
.ad-theme.woocommerce-checkout form.checkout, .ad-theme .account-container, .ad-theme.woocommerce-cart .woocommerce,
.ad-theme.woocommerce-account .page-wrapper .woocommerce { max-width: 1400px; margin-left: auto; margin-right: auto; }
.ad-theme.woocommerce-cart .page-wrapper, .ad-theme.woocommerce-checkout .page-wrapper, .ad-theme.woocommerce-account .page-wrapper { padding-bottom: 60px; }
.ad-theme .woocommerce-cart-form, .ad-theme .cart_totals, .ad-theme .checkout .col-inner.has-border,
.ad-theme .woocommerce-checkout-review-order, .ad-theme .woocommerce-MyAccount-content, .ad-theme .account-login-inner, .ad-theme .account-register-inner {
	background: #fff; border-radius: 10px; padding: 20px;
}
.ad-theme .checkout-breadcrumbs a, .ad-theme .checkout-breadcrumbs .current { text-transform: none; letter-spacing: 0; }
.ad-theme .checkout-breadcrumbs .current { color: var(--ad-primary); }
.ad-theme .cart_totals .amount, .ad-theme .woocommerce-checkout-review-order .order-total .amount, .ad-theme .shop_table .product-subtotal .amount { color: var(--ad-price); }
.ad-theme input.input-text, .ad-theme .woocommerce form .form-row input.input-text, .ad-theme select, .ad-theme textarea { border-radius: 8px; }
.ad-theme .woocommerce-message, .ad-theme .woocommerce-info { border-radius: 8px; }
.ad-theme .woocommerce-MyAccount-navigation ul li a { text-transform: none; }

/* ---------- quick view (Flatsome) ---------- */
.ad-theme .product-lightbox { border-radius: 12px; overflow: hidden; }
.ad-theme .product-lightbox .product-title { font-size: 22px; text-transform: none; }
.ad-theme .product-lightbox .price .amount { color: var(--ad-price); }
.ad-theme .product-lightbox .single_add_to_cart_button { background: var(--ad-primary) !important; border-radius: 30px; text-transform: none; letter-spacing: 0; }
.ad-theme .product-lightbox .ad-buy-now { margin-top: 10px; }
.ad-theme .product-lightbox .variations select.ad-sr-select + .ad-swatches { margin-bottom: 6px; }

/* sửa sau QA mobile */
.ad-shop__filter-btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 991px) {
	.ad-shop__side { max-width: 86vw !important; width: 320px !important; top: 0 !important; }
	.ad-shop__toolbar { align-items: center; }
	.ad-sorting { min-width: 0; flex: 1; }
}

/* ==========================================================================
   Ô SỐ LƯỢNG (quick view, trang sản phẩm, giỏ hàng): 1 khối gọn  [ − | 1 | + ]  cao 44px, ghi đè Flatsome
   ========================================================================== */
.ad-theme div.quantity, .ad-theme .ux-quantity.quantity { display: inline-flex; align-items: stretch; flex: none; width: auto; height: 44px; margin: 0; border: 1px solid #e0d2bf; border-radius: 8px; background: #fff; overflow: hidden; vertical-align: middle; }
.ad-theme .quantity .ux-quantity__button, .ad-theme .quantity input.minus, .ad-theme .quantity input.plus {
	flex: none; width: 40px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	background: #fff4e2 !important; color: var(--ad-primary) !important; font-size: 18px; font-weight: 700; line-height: 1; text-transform: none; cursor: pointer; transition: background .2s, color .2s;
}
.ad-theme .quantity .ux-quantity__button:hover, .ad-theme .quantity input.minus:hover, .ad-theme .quantity input.plus:hover { background: var(--ad-primary) !important; color: #fff !important; }
.ad-theme .quantity input.qty, .ad-theme .quantity .input-text.qty {
	flex: none; width: 52px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-left: 1px solid #e0d2bf !important; border-right: 1px solid #e0d2bf !important; border-radius: 0 !important;
	background: #fff; box-shadow: none !important; text-align: center; font-size: 16px; font-weight: 600; color: #2b2523; -moz-appearance: textfield; appearance: textfield;
}
.ad-theme .quantity input.qty::-webkit-outer-spin-button, .ad-theme .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Nút thêm giỏ trong quick view / trang sản phẩm: cùng chiều cao với ô số lượng */
.ad-theme .product-lightbox form.cart, .ad-theme .product-info form.cart:not(.variations_form) { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ad-theme .product-lightbox .single_add_to_cart_button, .ad-theme .product-info .single_add_to_cart_button { height: 44px; min-height: 44px; line-height: 42px; margin: 0; padding: 0 28px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.ad-theme .product-lightbox .ad-buy-now, .ad-theme .product-info .ad-buy-now { height: 44px; line-height: 42px; margin: 0; border-radius: 8px; }

/* ==========================================================================
   GIỎ HÀNG: nút, mã ưu đãi, tổng cộng
   ========================================================================== */
.ad-theme .woocommerce-cart-form .actions { padding-top: 14px; }
.ad-theme .woocommerce-cart-form .actions .button, .ad-theme .cart_totals .checkout-button, .ad-theme .ux-cart-coupon .button { height: 44px; min-height: 44px; line-height: 42px; padding: 0 22px; margin: 0 10px 0 0; border-radius: 8px; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; box-shadow: none; }
.ad-theme .woocommerce-cart-form .actions .button.primary, .ad-theme .woocommerce-cart-form .actions button[name=update_cart] { background: var(--ad-primary) !important; border: 1px solid var(--ad-primary) !important; color: #fff !important; }
.ad-theme .woocommerce-cart-form .actions button[name=update_cart][disabled], .ad-theme .woocommerce-cart-form .actions button[name=update_cart][aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.ad-theme .woocommerce-cart-form .button-continue-shopping.button.is-outline { background: #fff !important; border: 1px solid var(--ad-primary) !important; color: var(--ad-primary) !important; }
.ad-theme .woocommerce-cart-form .button-continue-shopping.button.is-outline:hover { background: var(--ad-primary) !important; color: #fff !important; }
.ad-theme .cart_totals .checkout-button { width: 100%; margin: 0; background: var(--ad-primary) !important; border: 1px solid var(--ad-primary) !important; color: #fff !important; }
.ad-theme .cart_totals .checkout-button:hover { background: #b10c00 !important; border-color: #b10c00 !important; }
.ad-theme .cart_totals h2 { font-size: 22px; margin: 0 0 12px; }
.ad-theme .cart_totals th, .ad-theme .cart_totals td { font-size: 15px; }
.ad-theme .ux-cart-coupon { background: #fff; border-radius: 10px; padding: 20px; margin-top: 16px; }
.ad-theme .ux-cart-coupon .widget-title { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 12px; padding: 0; border: 0; }
.ad-theme .ux-cart-coupon .widget-title i { color: var(--ad-primary); font-size: 18px; }
.ad-theme .ux-cart-coupon .coupon { display: grid; gap: 10px; }
.ad-theme .ux-cart-coupon input.input-text { height: 44px; margin: 0; }
.ad-theme .ux-cart-coupon .button, .ad-theme .ux-cart-coupon button.is-form { width: 100%; margin: 0; background: var(--ad-primary) !important; border: 1px solid var(--ad-primary) !important; color: #fff !important; }
.ad-theme .ux-cart-coupon .button:hover { background: #b10c00 !important; }
.ad-theme .woocommerce-cart-form .product-remove a.remove { color: var(--ad-primary) !important; border-color: #e0d2bf !important; }

/* ==========================================================================
   THANH TOÁN: lưới 2 cột đều nhau – không thụt ra thụt vào
   ========================================================================== */
.ad-theme .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ad-theme .woocommerce-billing-fields__field-wrapper > .form-row { float: none; width: 100%; margin: 0 0 16px; padding: 0; grid-column: span 1; }
.ad-theme .woocommerce-billing-fields__field-wrapper > .form-row-wide, .ad-theme .woocommerce-billing-fields__field-wrapper > #billing_address_1_field, .ad-theme .woocommerce-billing-fields__field-wrapper > #billing_city_field, .ad-theme .woocommerce-billing-fields__field-wrapper > #billing_first_name_field { grid-column: 1 / -1; }
.ad-theme .woocommerce-checkout .form-row label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #2b2523; }
.ad-theme .woocommerce-checkout .form-row input.input-text, .ad-theme .woocommerce-checkout .form-row select, .ad-theme .woocommerce-checkout .form-row .select2-selection { width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid #e0d2bf; border-radius: 8px; background: #fff; box-shadow: none; font-size: 15px; }
.ad-theme .woocommerce-checkout .form-row input.input-text:focus, .ad-theme .woocommerce-checkout .form-row select:focus { border-color: var(--ad-primary); }
.ad-theme .woocommerce-checkout .woocommerce-billing-fields > h3 { font-size: 24px; margin: 0 0 16px; }
.ad-theme .woocommerce-checkout #order_review_heading { font-size: 24px; margin: 0 0 14px; }
.ad-theme #place_order { width: 100%; height: 48px; margin: 0; border-radius: 8px; background: var(--ad-primary) !important; border: 1px solid var(--ad-primary) !important; color: #fff !important; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ad-theme #place_order:hover { background: #b10c00 !important; }
.ad-theme .woocommerce-checkout-payment { background: transparent; }
@media (max-width: 767px) { .ad-theme .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; } .ad-theme .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1; } }

/* Giỏ hàng: gọn phần vận chuyển (nước mặc định Việt Nam, không cần ô tính phí) */
.ad-theme .cart_totals .woocommerce-shipping-destination, .ad-theme .cart_totals .shipping-calculator-button, .ad-theme .cart_totals .woocommerce-shipping-calculator { display: none !important; }
.ad-theme .cart_totals .shipping th { white-space: nowrap; width: 1%; padding-right: 20px; }
.ad-theme .cart_totals .shipping td { text-align: right; }

/* mini-cart: "1 × giá" là span.quantity – không áp kiểu ô số lượng */
.ad-theme .woocommerce-mini-cart-item .quantity, .ad-theme span.quantity { display: inline; height: auto; border: 0; background: none; border-radius: 0; overflow: visible; margin: 0; padding: 0; font-size: 14px; }
