body.template-tmsc-expert {
	margin: 0;
	background: #eef2f7
}

.tmsc-landing {
	--tmsc-primary: #e11d48;
	min-height: 100vh;
	color: #111827;
	font-family: Arial, Helvetica, sans-serif;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%)
}

.tmsc-site-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 50
}

.tmsc-site-header__inner,
.tmsc-site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

/* Header: avatar, ô tìm kiếm và giỏ hàng cùng chiều cao, canh giữa thẳng hàng */
.tmsc-site-header__inner > .tmsc-avatar {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	flex: none
}

.tmsc-site-header__inner .tmsc-header-search {
	align-self: center;
    margin: 0;
}

.tmsc-site-header__inner .tmsc-header-cart {
	align-self: center;
	height: 46px;
	padding: 0 14px;
	border-radius: 12px
}

.tmsc-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #111827;
	min-width: 0
}

.tmsc-brand__mark {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #e11d48;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	flex: none
}

.tmsc-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.08;
	min-width: 0
}

.tmsc-brand__text strong {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.tmsc-brand__text small {
	font-size: 10px;
	color: #6b7280
}

.tmsc-header-search {
	display: flex;
	align-items: center;
	flex: 1;
	position: relative;
}

.tmsc-header-search__input-wrap {
	position: relative;
	flex: 1;
}


.tmsc-live-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	display: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
	overflow: hidden;
	min-width: 300px;
}

.tmsc-live-search-dropdown.is-visible {
	display: block;
}

.tmsc-live-search__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	color: #111827;
	text-decoration: none;
	border-bottom: 1px solid #f1f5f9;
	transition: background .15s ease;
}

.tmsc-live-search__item:hover {
	background: #fff7ed;
}

.tmsc-live-search__item-image {
	width: 52px;
	height: 52px;
	flex: none;
	overflow: hidden;
	border-radius: 8px;
	background: #f8fafc;
}

.tmsc-live-search__item-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmsc-live-search__item-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tmsc-live-search__item-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
}

.tmsc-live-search__item-price {
	font-size: 12px;
	font-weight: 700;
	color: #e11d48;
}

.tmsc-live-search__all,
.tmsc-live-search__loading,
.tmsc-live-search__empty {
	display: block;
	padding: 12px 14px;
	font-size: 13px;
	text-align: center;
}

.tmsc-live-search__all {
	color: #e11d48;
	font-weight: 700;
	text-decoration: none;
	background: #fff1f2;
}

.tmsc-live-search__all:hover {
	background: #ffe4e6;
}

.tmsc-live-search__loading,
.tmsc-live-search__empty {
	color: #6b7280;
}

.tmsc-header-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	border-radius: 999px;
	padding: 9px 12px;
	font-size: 14px;
	background: transparent;
	outline: none
}

.tmsc-header-search button {
	flex: none;
	border: 0;
	background: #f43f5e;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 0 10px 10px 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease
}

.tmsc-header-search button:hover {
	background: #e11d48
}

.tmsc-header-search button:active {
	transform: scale(.95)
}

.tmsc-header-search .search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center
}

.tmsc-header-search .search-icon svg {
	width: 20px;
	height: 20px;
	display: block
}

/* Popup thêm giỏ hàng thành công */
.tmsc-cart-toast {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translate(-50%, -20px);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #16a34a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(22, 163, 74, .35);
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease
}

.tmsc-cart-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto
}

.tmsc-cart-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	font-size: 13px;
	font-weight: 700
}

.tmsc-action-button.is-loading {
	opacity: .6;
	cursor: progress
}

.tmsc-site-header__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end
}

.tmsc-header-link,
.tmsc-header-cart,
.tmsc-cart-button,
.tmsc-checkout-button,
.tmsc-socials a,
.tmsc-search button,
.woocommerce .button.add_to_cart_button,
.woocommerce a.button,
.tmsc-sortbar__tabs a,
.tmsc-expert-nav a {
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #111827;
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, border-color .15s ease, transform .15s ease
}

.tmsc-header-link:hover,
.tmsc-header-cart:hover,
.tmsc-cart-button:hover,
.tmsc-checkout-button:hover,
.tmsc-socials a:hover,
.tmsc-search button:hover,
.woocommerce .button.add_to_cart_button:hover,
.tmsc-sortbar__tabs a:hover,
.tmsc-expert-nav a:hover {
	background: #f8fafc;
	border-color: #d1d5db;
	transform: translateY(-1px)
}

.tmsc-header-cart {
	border-color: #d1d5db;
	display: inline-flex;
	align-items: center;
	gap: 6px
}

.tmsc-header-cart .tmsc-cart-icon {
	font-size: 18px;
	line-height: 1
}

.tmsc-header-cart strong,
.tmsc-cart-button strong {
	background: #e11d48;
	color: #fff;
	border-radius: 999px;
	padding: 1px 6px;
	font-size: 11px
}

.tmsc-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px
}

.tmsc-card,
.tmsc-section,
.tmsc-main,
.tmsc-sidebar,
.tmsc-sortbar,
.tmsc-expert-nav,
.tmsc-woo-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04)
}

.tmsc-hero {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.tmsc-hero__banner-wrap {
	overflow: hidden;
	border-radius: 14px 14px 0px 0px;
	background: #f8fafc;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04)
}

.tmsc-hero__banner {
	width: 100%;
	display: block;
	object-fit: cover;
	background: #eee
}

.tmsc-hero__banner--empty {
	background: linear-gradient(135deg, #fef3c7, #dbeafe)
}

.tmsc-hero__info {
	padding: 16px 18px
}

.tmsc-profile {
	display: flex;
	gap: 12px;
	align-items: flex-start
}

.tmsc-avatar {
	width: 150px;
	height: 150px;
	border-radius: 14px;
	object-fit: cover;
	flex: none;
	border: 1px solid #e5e7eb
}

.tmsc-avatar--empty {
	display: grid;
	place-items: center;
	background: #f472b6;
	color: #fff;
	font-weight: 700;
	font-size: 20px
}

.tmsc-profile__body {
	min-width: 0;
	flex: 1
}

.tmsc-kicker {
	margin: 0 0 6px;
	font-size: 11px;
	color: #6b7280;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em
}

.tmsc-profile__body h1 {
	margin: 0;
	font-size: 28px;
	line-height: 1.08;
	font-weight: 700;
	color: #111827
}

.tmsc-meta-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 10px 0 8px
}

.tmsc-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff1f2;
	color: #be123c;
	font-size: 12px;
	border: 1px solid #fecdd3
}

.tmsc-intro {
	margin-top: 8px;
	color: #374151;
	font-size: 14px;
	line-height: 1.6;
	max-height: 4.8em;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	position: relative;
}

.tmsc-intro.is-expanded {
	max-height: none;
}

.tmsc-intro::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1em;
	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
	pointer-events: none;
}

.tmsc-intro.is-expanded::after {
	display: none;
}

.tmsc-intro-toggle {
	display: inline-block;
	margin-top: 4px;
	padding: 4px 8px;
	background: none;
	border: none;
	color: var(--tmsc-primary, #e11d48);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	transition: opacity 0.2s;
}

.tmsc-intro-toggle:hover {
	opacity: 0.7;
}

.tmsc-socials {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px
}

.tmsc-socials a,
.tmsc-social {
	font-size: 12px;
	gap: 6px;
	background: #f8fafc
}

.tmsc-social svg {
	width: 15px;
	height: 15px;
	flex: none
}

.tmsc-social--facebook:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8
}

.tmsc-social--tiktok:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #111827
}

.tmsc-social--zalo:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #0068ff
}

.tmsc-social--phone:hover {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #16a34a
}

/* Floating Contact Button - chỉ hiện ở mobile */
.tmsc-floating-contact {
	display: none;
	position: fixed;
	right: 14px;
	bottom: 18px;
	z-index: 9998;
	flex-direction: column;
	gap: 10px
}

.tmsc-floating-contact__btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .22);
	transition: transform .15s ease
}

.tmsc-floating-contact__btn:active {
	transform: scale(.92)
}

.tmsc-floating-contact__btn svg {
	width: 24px;
	height: 24px;
	display: block
}

.tmsc-floating-contact__btn--phone {
	background: #16a34a;
	animation: tmsc-fc-pulse 2s infinite
}

.tmsc-floating-contact__btn--zalo {
	background: #0068ff
}

.tmsc-floating-contact__btn--facebook {
	background: #1877f2
}

.tmsc-floating-contact__btn--tiktok {
	background: #111827
}

@keyframes tmsc-fc-pulse {
	0% {
		box-shadow: 0 6px 16px rgba(22, 163, 74, .5), 0 0 0 0 rgba(22, 163, 74, .5)
	}
	70% {
		box-shadow: 0 6px 16px rgba(22, 163, 74, .3), 0 0 0 12px rgba(22, 163, 74, 0)
	}
	100% {
		box-shadow: 0 6px 16px rgba(22, 163, 74, .3), 0 0 0 0 rgba(22, 163, 74, 0)
	}
}

.tmsc-toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	margin: 14px 0;
	flex-wrap: wrap
}

.tmsc-toolbar__left {
	flex: 1;
	min-width: 0
}

.tmsc-toolbar__right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end
}

.tmsc-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px auto;
	gap: 8px;
	align-items: center;
	width: 100%
}

.tmsc-search input,
.tmsc-search select {
	border: 1px solid #dbe4ea;
	background: #fff;
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 14px;
	min-width: 0;
	height: auto;
	outline: none
}

.tmsc-search input:focus,
.tmsc-search select:focus {
	border-color: #f43f5e;
	box-shadow: 0 0 0 3px rgba(244, 63, 94, .12)
}

.tmsc-search button {
	background: #e11d48;
	color: #fff;
	border-color: #e11d48;
	padding: 11px 14px;
	font-weight: 700
}

.tmsc-cart-button,
.tmsc-checkout-button {
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700
}

.tmsc-cart-button {
	background: #fff
}

.tmsc-checkout-button {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #be123c
}

.tmsc-cart-subtotal {
	font-size: 12px;
	color: #374151;
	font-weight: 700
}

.tmsc-expert-nav {
	display: flex;
	gap: 8px;
	padding: 12px 14px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 14px
}

.tmsc-avatar-link {
	display: inline-flex;
	text-decoration: none;
	border-radius: 999px;
	flex: 0 0 auto
}

.tmsc-avatar-link:focus-visible {
	outline: 2px solid #f43f5e;
	outline-offset: 3px
}

.tmsc-expert-nav a.is-active,
.tmsc-sortbar__tabs a.is-active {
	background: #fff1f2;
	border-color: #f9a8d4;
	color: #be123c
}

/* Tab điều hướng: sản phẩm / giỏ hàng / thanh toán */
.tmsc-nav-link {
	gap: 7px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600
}

.tmsc-nav-link[hidden] {
	display: none !important
}

.tmsc-nav-icon {
	width: 17px;
	height: 17px;
	flex: none
}

.tmsc-nav-count {
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e11d48;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1
}

.tmsc-nav-count.is-empty {
	background: #cbd5e1;
	color: #fff
}

.tmsc-woo-panel {
	padding: 14px
}

.tmsc-woo-notices {
	margin-bottom: 14px
}

.tmsc-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 12px;
	align-items: start
}

.tmsc-sidebar {
	position: sticky;
	top: 76px;
	padding: 10px;
	display: grid;
	gap: 10px
}

.tmsc-sidebar__desc {
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
	margin: 4px 0 0
}

.tmsc-contact-box,
.tmsc-category-box {
	padding: 10px;
	border-radius: 10px;
	background: #fafafa;
	border: 1px solid #eef2f7;
	display: grid;
	gap: 6px;
	font-size: 12px
}

.tmsc-category-box a {
	color: #334155;
	text-decoration: none;
	font-weight: 700;
	padding: 8px 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #e5e7eb
}

.tmsc-category-box a.is-active {
	background: #fff1f2;
	border-color: #f9a8d4;
	color: #be123c
}

.tmsc-category-box span {
	color: #6b7280;
	padding-top: 4px
}

.tmsc-contact-box a {
	color: #e11d48;
	text-decoration: none;
	font-weight: 700
}

.tmsc-main-wrap {
	display: grid;
	gap: 14px
}

.tmsc-sortbar {
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap
}

.tmsc-sortbar__label {
	font-size: 13px;
	color: #374151;
	font-weight: 700;
	flex: none
}

.tmsc-sortbar__tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap
}

.tmsc-sortbar__tabs a {
	padding: 7px 12px;
	border-radius: 10px
}

.tmsc-main {
	padding: 14px
}

.tmsc-section {
	padding: 14px;
	margin-bottom: 14px
}

.tmsc-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px
}

.tmsc-section__head h2,
.tmsc-sidebar h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	color: #111827
}

.tmsc-count {
	font-size: 12px;
	color: #6b7280;
	font-weight: 700
}

.tmsc-products {
	display: grid;
	gap: 14px
}

.tmsc-products--featured {
	grid-template-columns: repeat(5, minmax(0, 1fr))
}

.tmsc-products--grid {
	grid-template-columns: repeat(4, minmax(0, 1fr))
}

.tmsc-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px
}

.tmsc-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #475569;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all .15s ease
}

.tmsc-pagination a:hover,
.tmsc-pagination a.is-active {
	background: #fce7f3;
	border-color: #f9a8d4;
	color: #be123c;
	box-shadow: 0 4px 14px rgba(244, 63, 94, .12)
}

.tmsc-products--list {
	grid-template-columns: 1fr
}

.tmsc-product-card {
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease
}

.tmsc-product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08)
}

.tmsc-product-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	background: #f8fafc
}

.tmsc-product-card__body {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1
}

.tmsc-product-card .woocommerce-loop-product__title {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400
}

.tmsc-product-card .woocommerce-loop-product__title a {
	color: #f4a638;
	text-decoration: none
}

.tmsc-product-card .price {
	color: #e11d48;
	font-size: 16px;
	font-weight: 700;
	margin-top: 2px
}

.tmsc-product-card__actions {
	margin-top: auto
}

.tmsc-product-card__actions .button {
	width: 100%;
	font-size: 16px;
	border-radius: 10px;
	background: #fff;
	color: #e11d48;
	border: 1px solid #fda4af;
	box-shadow: none
}

.tmsc-detail-actions--inline {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.tmsc-detail-actions--inline .tmsc-action-button {
	border-radius: 10px;
	width: auto;
}

.tmsc-empty-state {
	text-align: center;
	padding: 28px 12px;
	color: #6b7280;
	font-size: 14px;
	background: #fafafa;
	border-radius: 12px;
	border: 1px dashed #e5e7eb
}

.tmsc-site-footer {
	background: #fff;
	border-top: 1px solid #e5e7eb;
	margin-top: 14px
}

.tmsc-site-footer__inner {
	align-items: flex-start
}

.tmsc-site-footer__brand strong {
	display: block;
	font-size: 13px;
	color: #111827;
	margin-bottom: 4px
}

.tmsc-site-footer__brand p,
.tmsc-site-footer__meta {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	color: #6b7280
}

.tmsc-site-footer__meta {
	text-align: right
}

.tmsc-shell .woocommerce ul.products {
	display: contents
}

.tmsc-shell .woocommerce ul.products li.product {
	width: auto;
	margin: 0
}

.tmsc-shell .woocommerce .button.add_to_cart_button,
.tmsc-shell .woocommerce a.button {
	padding: 8px 10px !important
}

.tmsc-shell .woocommerce-loop-product__title {
	font-size: 16px
}

.tmsc-site-header__actions .tmsc-header-link:last-child {
	display: none
}

.tmsc-toolbar__right .tmsc-checkout-button {
	display: none
}

.tmsc-single-product-head {
	display: flex;
	gap: 16px;
	align-items: start;
	margin-bottom: 16px
}

.tmsc-single-product-head__media {
	flex: 0 0 42%;
	max-width: 42%;
	min-width: 0
}
.tmsc-single-product-summary li {
    margin-left: 20px;
}
.tmsc-single-product-head__body {
    max-width: 100%;
    min-width: 0;
}


.tmsc-single-product-head__body .price,
.tmsc-single-product-head__body .tmsc-single-product-summary {
	overflow-wrap: anywhere;
	word-break: break-word
}
li.whitespace-normal.break-words {
    margin-left: 15px;
}
.tmsc-single-product-head__media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
}

.tmsc-single-product-head__body h2 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.15
}

.tmsc-single-product-content {
	font-size: 14px;
	line-height: 1.7;
	color: #334155
}

.tmsc-single-product-content p {
	margin: 0 0 12px
}

@media (max-width: 1024px) {

	.tmsc-site-header__inner,
	.tmsc-site-footer__inner,
	.tmsc-shell {
		max-width: 100%
	}

	.tmsc-hero,
	.tmsc-layout {
		grid-template-columns: 1fr
	}

	.tmsc-sidebar {
		position: static
	}

	.tmsc-products--featured,
	.tmsc-products--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr))
	}

	.tmsc-toolbar {
		align-items: stretch
	}

	.tmsc-site-footer__meta {
		text-align: left
	}

	.tmsc-sortbar {
		justify-content: flex-start
	}

	.tmsc-single-product-head {
        display: flex;
        flex-direction: column;
    }

	.tmsc-single-product-head__media {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%
	}

	.tmsc-single-product-head__media img {
		max-width: 360px;
		margin: 0 auto
	}
}

@media (max-width: 768px) {

	.tmsc-floating-contact {
		display: flex
	}

	.tmsc-products--featured,
	.tmsc-products--grid,
	.tmsc-products--list {
		grid-template-columns: repeat(2, minmax(0, 1fr))
	}

	.tmsc-search {
		grid-template-columns: 1fr 140px auto
	}

	.tmsc-pagination {
		gap: 6px
	}

	.tmsc-pagination a {
		min-width: 32px;
		height: 32px;
		font-size: 12px
	}
}

@media (max-width: 540px) {
	.tmsc-shell {
		padding: 10px
	}

	.tmsc-hero__info,
	.tmsc-main,
	.tmsc-sidebar,
	.tmsc-section,
	.tmsc-sortbar,
	.tmsc-woo-panel {
		padding: 12px
	}

	.tmsc-avatar {
		width: 48px;
		height: 48px;
		border-radius: 12px
	}

	.tmsc-profile__body h1 {
		font-size: 22px
	}

	.tmsc-search {
		grid-template-columns: 1fr
	}

	.tmsc-toolbar {
		flex-direction: column;
		align-items: stretch
	}

	.tmsc-toolbar__right {
		justify-content: flex-start
	}

	.tmsc-products--featured,
	.tmsc-products--grid,
	.tmsc-products--list {
		grid-template-columns: repeat(2, minmax(0, 1fr))
	}

	.tmsc-site-header__actions {
		width: 100%
	}

	.tmsc-site-header__actions .tmsc-header-link {
		display: none
	}

	.tmsc-toolbar__right .tmsc-checkout-button {
		display: inline-flex
	}

	.tmsc-header-search {
		display: flex;
		flex: 1;
		max-width: none;
		margin: 0
	}

	.tmsc-live-search-dropdown {
		min-width: 0;
		left: -1px;
		right: -1px;
	}

	.tmsc-site-header__inner {
		gap: 8px
	}

	.tmsc-single-product-head {
		grid-template-columns: 1fr
	}

	.tmsc-single-product-head__body h2 {
		font-size: 20px
	}

}
input[type="search"] {
    border-radius: 10px 0 0 10px;
}
.message-container.container.medium-text-center {
    text-align: center;
}
a.button.primary.wc-backward {
    border-radius: 10px;
    background: #fff;
    color: #757171;
    border: 1px solid;
}
input[type="search"] {
    border-radius: 10px 0 0px 10px !important;
}
.tmsc-single-product-content li {
    margin-left: 15px;
}

/* ── Search Results: show only products ── */
.tmsc-is-searching #tmsc-featured {
    display: none;
}

/* Full-width layout when searching */
.tmsc-layout--search {
    grid-template-columns: 1fr;
}

/* Hide sidebar and sortbar when searching */
.tmsc-is-searching .tmsc-sidebar,
.tmsc-is-searching .tmsc-sortbar {
    display: none;
}

/* Hide regular section head in main card when searching */
.tmsc-is-searching .tmsc-main .tmsc-section__head {
    display: none;
}

/* Search results header */
.tmsc-search-results-header {
    margin-bottom: 14px;
    padding: 14px 18px;
}

.tmsc-search-results-header__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tmsc-search-results-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #111827;
}

.tmsc-search-results-header__term {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.tmsc-search-results-header__term strong {
    color: #e11d48;
}

.tmsc-search-results-header__clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex: none;
    transition: background .15s, border-color .15s;
}

.tmsc-search-results-header__clear:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #111827;
}

/* Product grid for search results: 4 columns, full width */
.tmsc-products--search-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Simplified search product card: no price, no actions, just image + name */
.tmsc-product-card--search {
    cursor: pointer;
}

.tmsc-product-card--search .tmsc-product-card__image {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.tmsc-product-card--search .tmsc-product-card__image img {
    transition: transform .2s ease;
}

.tmsc-product-card--search:hover .tmsc-product-card__image img {
    transform: scale(1.04);
}

.tmsc-product-card--search .tmsc-product-card__body {
    padding: 10px 12px 12px;
}

.tmsc-product-card--search .woocommerce-loop-product__title {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.tmsc-product-card--search .woocommerce-loop-product__title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmsc-product-card--search .woocommerce-loop-product__title a:hover {
    color: #e11d48;
}

/* Hide price and actions in search cards */
.tmsc-product-card--search .price,
.tmsc-product-card--search .tmsc-product-card__actions {
    display: none;
}

@media (max-width: 1024px) {
    .tmsc-products--search-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tmsc-products--search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .tmsc-products--search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmsc-search-results-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
button.button.alt.tmsc-action-button.tmsc-action-button--add-cart,button.button.alt.tmsc-action-button.tmsc-action-button--buy-now {
    margin: 0;
    padding: 0 10px;
}
a.checkout-button.button.alt.wc-forward{
    padding: 15px !important;
    font-size: 16px;
    border: 1px solid #ddd;
}
button.button.primary.mt-0.pull-left.small {
    background: #fff;
    color: #555;
    border-radius: 10px;
    border: 1px solid #ddd;
}
input#coupon_code,button.is-form.expand.button {
    border-radius: 10px;
}
td.product-name {
    width: 240px;
}

/* ── Giỏ hàng: ô số lượng +/- ─────────────────────────────────────── */
.tmsc-woo-panel .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.tmsc-woo-panel .quantity .qty {
    width: 48px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.tmsc-woo-panel .quantity .qty::-webkit-inner-spin-button,
.tmsc-woo-panel .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tmsc-woo-panel .quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background .15s;
}
.tmsc-woo-panel .quantity-btn:hover {
    background: #f3f4f6;
}
.tmsc-woo-panel .quantity-btn:active {
    background: #e5e7eb;
}
.tmsc-woo-panel .quantity-btn[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
/* Cart totals + checkout */
.tmsc-woo-panel .cart-subtotal,
.tmsc-woo-panel .cart-totals td,
.tmsc-woo-panel .checkout-button {
    font-size: 15px;
}

