/* Sheetora additions on top of dpmarket main.css */

/* Arabic typography */
html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .btn, html[dir="rtl"] input, html[dir="rtl"] select,
html[dir="rtl"] .font-heading {
	font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
	letter-spacing: 0;
}
html[dir="rtl"] .banner-two__title { line-height: 1.35; }
html[dir="rtl"] .las.la-arrow-right,
html[dir="rtl"] .las.la-angle-right,
html[dir="rtl"] .las.la-angle-left { transform: scaleX(-1); }

/* Logo */
.sh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.sh-logo .sh-logo__mark { width: auto !important; height: 40px !important; max-width: none !important; display: block; flex: none; }
.sh-logo__text { white-space: nowrap; }
.sh-logo__text b { font-weight: 800; color: hsl(var(--heading-color)); }
.sh-logo__text em { font-style: normal; font-weight: 800; color: hsl(var(--main)); background: var(--main-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-inline-end: 1px; } /* same gradient as .btn-main */
.sh-logo--white .sh-logo__text b { color: #fff; }
.sh-logo__text { font-family: var(--heading-font); font-weight: 700; font-size: 26px; color: hsl(var(--heading-color)); letter-spacing: -0.03em; }
html[dir="rtl"] .sh-logo__text { font-family: var(--heading-font); }

/* Announcement bar without countdown */
.sale-offer__content.flx-center { justify-content: center; }
.sale-offer__content .sale-offer__button { position: absolute; inset-inline-end: 0; }

/* Language switch */
.sh-lang { gap: 6px; }
.sh-lang__link { font-weight: 500; color: hsl(var(--body-color)); padding: 2px 6px; border-radius: 6px; }
.sh-lang__link.is-current { color: hsl(var(--main)); background: hsl(var(--main) / .1); }
.sh-lang__link[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.sh-mobile-langs { margin-top: 24px; }

/* Icons in tabs */
.common-tab .product-category-list__item i { font-size: 22px; }

/* Platform tag on cards */
.product-item__thumb { position: relative; }
.sh-plat {
	position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 12px; border-radius: 30px; font-size: 13px; font-weight: 600; color: #fff;
}
.sh-plat--excel { background: #107C41; }
.sh-plat--sheets { background: #188038; }
.sh-plat--notion { background: #191919; }
.sh-plat--ai { background: linear-gradient(135deg, #6D4AFF, #22C1D6); }
.sh-langs { display: inline-flex; gap: 6px; }
.sh-langs span {
	font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 30px;
	border: 1px solid hsl(var(--border-color, 0 0% 88%)); color: hsl(var(--heading-color));
}
.sh-langs span:last-child { font-family: "IBM Plex Sans Arabic", sans-serif; }
.product-item__thumb img, .popular-item-card__thumb img { aspect-ratio: 306 / 196; object-fit: cover; width: 100%; }

/* Category cards */
.sh-cat__icon { width: 64px; height: 64px; border-radius: 18px; display: grid !important; place-items: center; color: #fff; font-size: 34px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; position: relative; z-index: 1; }
.sh-chips a {
	display: inline-block; padding: 5px 12px; border-radius: 30px; font-size: 13px;
	background: hsl(var(--main) / .08); color: hsl(var(--heading-color));
	transition: .2s;
}
.sh-chips a:hover { background: hsl(var(--main)); color: #fff; }
.service-item:hover .sh-chips a { background: rgba(255,255,255,.18); color: #fff; }

/* EN vs AR compare */
.sh-compare__item { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(17, 12, 46, .12); }
.sh-compare__item img { width: 100%; height: auto; display: block; }
.sh-compare__item figcaption {
	position: absolute; bottom: 14px; left: 14px; background: hsl(var(--black)); color: #fff;
	padding: 6px 16px; border-radius: 30px; font-weight: 600; font-size: 14px;
}
.sh-compare .section-heading__desc { max-width: 640px; margin-inline: auto; }

/* Product page gallery + meta */
.sh-gallery__main { width: 100%; height: auto; border-radius: 16px; }
.sh-gallery__thumbs { display: flex; gap: 12px; align-items: center; margin: 16px 0 24px; flex-wrap: wrap; }
.sh-gallery__thumb { width: 120px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.sh-gallery__thumb.active { border-color: hsl(var(--main)); }
.sh-gallery__thumb img { width: 100%; height: auto; display: block; }
.sh-gallery__hint { font-size: 14px; color: hsl(var(--body-color)); display: inline-flex; gap: 6px; align-items: center; }
.sh-desc ul { padding-inline-start: 20px; list-style: disc; }
.sh-desc li { margin-bottom: 6px; }
.sh-meta { list-style: none; padding: 0; margin: 0; border-top: 1px solid hsl(var(--border-color, 0 0% 88%)); }
.sh-meta li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed hsl(var(--border-color, 0 0% 88%)); font-size: 14px; }
.sh-meta b { font-weight: 600; color: hsl(var(--heading-color)); }
.mt-120 { margin-top: 120px; }

/* Shop sidebar */
.filter-sidebar-list__text.sh-active { color: hsl(var(--main)); font-weight: 600; }
.sh-pagination { display: flex; gap: 8px; justify-content: center; }
.sh-pagination .page-numbers {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid hsl(var(--border-color, 0 0% 88%)); color: hsl(var(--heading-color));
}
.sh-pagination .current { background: hsl(var(--main)); color: #fff; border-color: transparent; }

/* Woo pages (cart, checkout, account) inside the template */
.sh-page-content .wc-block-components-button,
.sh-page-content .wp-element-button { background: hsl(var(--main)); border-radius: 50px; color: #fff; }
.sh-page-content { min-height: 30vh; }
.added_to_cart { display: none !important; }

/* 4 platform cards: keep chips compact */
.sh-cat .service-item__desc { min-height: 72px; }

.sh-logo--white .sh-logo__text { color: #fff; }
.filter-sidebar-list__text.text-main { font-weight: 600; }

/* Cart */
.sh-cart-totals td { border-bottom: 0; padding-top: 18px; }
.sh-cart-empty { padding: 60px 20px; }
.sh-cart-empty__icon { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; background: hsl(var(--main) / .1); }
.sh-cart-empty__icon img { width: 36px; }
.cart-item__count input.qty { -moz-appearance: textfield; }
.cart-item__count input.qty::-webkit-outer-spin-button,
.cart-item__count input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart .woocommerce-message, .cart .woocommerce-info, .cart .woocommerce-error { list-style: none; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; background: hsl(var(--main) / .08); color: hsl(var(--heading-color)); }
.cart .woocommerce-message .button, .cart .woocommerce-message a.restore-item { margin-inline-start: 8px; color: hsl(var(--main)); font-weight: 600; }
html[dir="rtl"] .sh-cart-totals .text-end { text-align: left !important; }
.cart .woocommerce-message::before, .cart .woocommerce-info::before, .cart .woocommerce-error::before { display: none; }
.cart .woocommerce-message, .cart .woocommerce-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; }
.cart .woocommerce-message .button { order: 2; background: none; padding: 0; }
.cart .woocommerce-notices-wrapper:empty { display: none; }

/* Product video tab */
.sh-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.sh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sh-video--empty img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); }
.sh-video__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 20px; }
.sh-video__overlay p { color: #fff; font-size: 18px; margin: 0; }
.sh-video__play { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--main-gradient); font-size: 34px; color: #fff; }

/* Star picker */
.sh-stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
html[dir="rtl"] .sh-stars { flex-direction: row-reverse; }
.sh-stars input { position: absolute; opacity: 0; pointer-events: none; }
.sh-stars label { font-size: 26px; color: #d6d6e0; cursor: pointer; transition: color .15s; }
.sh-stars label:hover, .sh-stars label:hover ~ label, .sh-stars input:checked ~ label { color: #FFB800; }
.sh-notice { border-radius: 12px; padding: 14px 18px; background: hsl(var(--main) / .08); color: hsl(var(--heading-color)); }

/* Icon tabs: show the label on every tab from the start, so nothing jumps on click */
.common-tab.style-icon .nav-item .nav-link .product-category-list__item {
	padding: 10px 18px; width: auto; height: auto; border-radius: 50px !important;
	border: 1px solid hsl(var(--border-color, 0 0% 88%)); background-color: hsl(var(--white));
	color: hsl(var(--heading-color)); font-weight: 500;
}
.common-tab.style-icon .nav-item .nav-link .product-category-list__item .text { display: block; }
.common-tab.style-icon .nav-item .nav-link.active .product-category-list__item { padding: 10px 18px; border-color: hsl(var(--main)); color: hsl(var(--main)); }
.common-tab.style-icon .nav-item .nav-link .product-category-list__item img { width: 22px; height: 22px; }
/* the template's dark mode is [data-theme=light] */
[data-theme=light] .common-tab.style-icon .nav-item .nav-link .product-category-list__item { background-color: var(--dark-black-two); border-color: rgba(255,255,255,.14); color: #fff; }

/* Checkout */
.payment-select-card { list-style: none; }
.payment-select-card label { cursor: pointer; }
.payment-select-card__logo img { max-height: 28px; width: auto; }
.payment_box p { margin: 0; }
.cart-personal .woocommerce-error, .cart-personal .woocommerce-message, .cart-personal .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-error { list-style: none; border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; background: #fdecec; color: #9b1c1c; }
.cart-personal .woocommerce-message { background: hsl(var(--main) / .08); color: hsl(var(--heading-color)); }
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before { display: none !important; }
.cart-personal .form-row.woocommerce-invalid .common-input { border-color: #e5484d; }
.apply-coupon.processing { opacity: .5; pointer-events: none; }
.blockUI.blockOverlay { border-radius: 16px; }
.sh-pay-instructions { border-top: 1px dashed hsl(var(--border-color, 0 0% 88%)); padding-top: 16px; font-size: 14px; }
.sh-pay-instructions ul { list-style: none; padding: 0; }
.sh-pay-instructions .wc-bacs-bank-details-heading, .sh-pay-instructions h2 { font-size: 16px; margin: 12px 0 6px; }

/* Account */
.account-content .sh-logo__text { font-size: 30px; }
.account-thumb > img { max-width: 100%; height: auto; }
.sh-google-off { opacity: .55; pointer-events: none; }
.account-content .woocommerce-error, .account-content .woocommerce-message, .account-content .woocommerce-info,
.dashboard-body__content .woocommerce-error, .dashboard-body__content .woocommerce-message, .dashboard-body__content .woocommerce-info {
	list-style: none; border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; background: hsl(var(--main) / .08); color: hsl(var(--heading-color));
}
.account-content .woocommerce-error, .dashboard-body__content .woocommerce-error { background: #fdecec; color: #9b1c1c; }
.sh-woo-form .woocommerce-form-row, .sh-woo-form .form-row { margin-bottom: 16px; }
.sh-woo-form input.input-text { width: 100%; height: 56px; border-radius: 12px; border: 1px solid hsl(var(--border-color, 0 0% 88%)); padding: 0 18px; background: hsl(var(--section-bg, 240 20% 98%)); }
.sh-woo-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.sh-woo-form .woocommerce-Button, .sh-woo-form button[type=submit] { width: 100%; height: 56px; border: 0; border-radius: 50px; background: var(--main-gradient); color: #fff; font-weight: 500; }
.sh-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--main-gradient); color: #fff; font-weight: 700; font-size: 18px; }
.dashboard .logo .sh-logo__text { font-size: 24px; }
.sh-status { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 13px; font-weight: 600; background: #eef0f4; color: #374151; }
.sh-status--completed { background: #dcfce7; color: #166534; }
.sh-status--processing { background: #e0e7ff; color: #3730a3; }
.sh-status--on-hold, .sh-status--pending { background: #fef3c7; color: #92400e; }
.sh-status--failed, .sh-status--cancelled { background: #fee2e2; color: #991b1b; }
.download-item__thumb img { width: 120px; height: auto; border-radius: 10px; }
.sidebar-list__item.activePage .sidebar-list__link { color: hsl(var(--main)); }
.sh-acc-note { background: hsl(var(--white)); border-radius: 16px; padding: 20px 24px; box-shadow: 0 10px 30px rgba(17, 12, 46, .06); }

/* Header: small account icon + language dropdown */
.sh-user-btn { font-size: 22px; color: hsl(var(--heading-color)); }
.sh-user-btn:hover { color: hsl(var(--main)); }
.language-select select.select { background-color: transparent; cursor: pointer; min-width: 92px; }
html[dir="rtl"] .language-select select.select { font-family: "IBM Plex Sans Arabic", sans-serif; }
.sh-mobile-langs { margin-top: 24px; }

/* Blog */
.sh-author-sm { width: 32px; height: 32px; border-radius: 50%; }
.blog-details-content__thumb img { width: 100%; height: auto; border-radius: 16px; }
.blog-details-content .quote-text__desc { margin: 0; }
.article-item__thumb img { width: 100%; height: auto; }

/* Mini cart */
.sh-minicart__panel {
	position: absolute; top: calc(100% + 14px); inset-inline-end: -12px; width: 360px; max-width: calc(100vw - 24px);
	background: hsl(var(--white)); border-radius: 16px; box-shadow: 0 20px 50px rgba(17, 12, 46, .16);
	padding: 20px; z-index: 99; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.sh-minicart.is-open .sh-minicart__panel { opacity: 1; visibility: visible; transform: none; }
.sh-minicart__head { padding-bottom: 12px; border-bottom: 1px solid hsl(var(--border-color, 0 0% 90%)); margin-bottom: 8px; }
.sh-minicart__list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.sh-minicart__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed hsl(var(--border-color, 0 0% 90%)); }
.sh-minicart__thumb { flex: 0 0 72px; }
.sh-minicart__thumb img { width: 72px; height: 46px; object-fit: cover; border-radius: 8px; }
.sh-minicart__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-minicart__name { font-weight: 600; font-size: 14px; color: hsl(var(--heading-color)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-minicart__price { font-size: 13px; color: hsl(var(--body-color)); }
.sh-minicart__remove { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: hsl(var(--body-color)); background: hsl(var(--main) / .06); }
.sh-minicart__remove:hover { background: #fee2e2; color: #b91c1c; }
.sh-minicart__total { padding: 14px 0; }
.sh-minicart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-minicart__empty { padding: 24px 0 8px; }
.sh-minicart__empty img { width: 34px; opacity: .6; }
.sh-minicart__body.is-loading { opacity: .5; pointer-events: none; }
[data-theme=light] .sh-minicart__panel { background: var(--dark-black-two); }

/* Account + dashboard inside the shared header/footer */
.sh-account .account__right { padding-top: 80px; padding-bottom: 80px; }
.sh-account .account__left { min-height: auto; }
.sh-dashboard { padding: 60px 0 100px; background: hsl(var(--section-bg, 240 20% 98%)); }
.sh-dashboard .dashboard__inner { max-width: 1290px; margin: 0 auto; padding: 0 24px; gap: 24px; align-items: flex-start; }
@media (min-width: 992px) {
	.sh-dashboard .dashboard-sidebar { height: auto; position: sticky; top: 110px; border: 1px solid hsl(var(--gray-five)); border-radius: 16px; flex-shrink: 0; }
	.sh-dashboard .dashboard-body { width: auto; min-height: 0; flex: 1; }
}
.sh-dashboard .dashboard-body__content { padding: 0; }

/* Japanese and Korean typography */
html[lang^="ja"] body, html[lang^="ja"] h1, html[lang^="ja"] h2, html[lang^="ja"] h3, html[lang^="ja"] h4, html[lang^="ja"] h5, html[lang^="ja"] h6,
html[lang^="ja"] .btn, html[lang^="ja"] input, html[lang^="ja"] select, html[lang^="ja"] .font-heading { font-family: "Noto Sans JP", "Inter", sans-serif; letter-spacing: 0; }
html[lang^="ko"] body, html[lang^="ko"] h1, html[lang^="ko"] h2, html[lang^="ko"] h3, html[lang^="ko"] h4, html[lang^="ko"] h5, html[lang^="ko"] h6,
html[lang^="ko"] .btn, html[lang^="ko"] input, html[lang^="ko"] select, html[lang^="ko"] .font-heading { font-family: "Noto Sans KR", "Inter", sans-serif; letter-spacing: 0; word-break: keep-all; }
html[lang^="ja"] .banner-two__title, html[lang^="ko"] .banner-two__title { line-height: 1.3; }

/* File-language picker */
.sh-langpick__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-langpick__opt input { position: absolute; opacity: 0; }
.sh-langpick__opt span { display: flex; flex-direction: column; align-items: center; padding: 10px; border: 1.5px solid hsl(var(--border-color, 0 0% 88%)); border-radius: 12px; cursor: pointer; font-weight: 600; background: hsl(var(--white)); }
.sh-langpick__opt input:checked + span { border-color: hsl(var(--main)); color: hsl(var(--main)); box-shadow: 0 0 0 3px hsl(var(--main) / .12); }
.sh-langpick__opt.is-off span { opacity: .5; cursor: not-allowed; }
.sh-langpick__opt small { font-size: 11px; font-weight: 500; }

/* Product page: tab bar sits under the preview buttons */
.single-product .breadcrumb-two { padding-bottom: 40px; }
.sh-preview .product-details__buttons { margin-bottom: 8px; }
.sh-tabbar { border-bottom: 1px solid hsl(var(--border-color, 0 0% 88%)); margin: 32px 0 24px; padding-bottom: 0; justify-content: space-between; }
.sh-tabbar .tab-bordered { margin-bottom: -1px; }

/* More Items: full width, 4 cards per row */
.more-item__content.sh-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.sh-more-grid .more-item__item{width:auto;max-width:none;margin:0}
.sh-more-grid .more-item__item .link{border-radius:12px}
.sh-more-grid .more-item__item img{width:100%;height:auto;aspect-ratio:612/392;object-fit:cover;display:block}
.sh-more-grid .more-item__name{display:block;margin-top:10px;font-weight:500;font-size:15px;color:hsl(var(--heading-color));line-height:1.4}
.sh-more-grid .more-item__name::before{display:none}
@media (max-width:575px){.more-item__content.sh-more-grid{grid-template-columns:1fr;gap:20px}}
.more-item.sh-more{margin-top:48px}
@media (max-width:991px){.more-item__content.sh-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Main menu: current section */
.nav-menu__item.activePage > .nav-menu__link{color:hsl(var(--main));font-weight:600}
.nav-menu__item.activePage > .nav-menu__link::before{color:hsl(var(--main))}
.nav-submenu__item.activePage > .nav-submenu__link{color:hsl(var(--main))}

/* Contact page */
.sh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sh-contact-note { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.sh-contact-note i { font-size: 20px; line-height: 1.2; }
.sh-contact-note--ok { background: #DCFCE7; color: #166534; }
.sh-contact-note--err { background: #FEE2E2; color: #991B1B; }
.sh-contact-form select.common-input { appearance: auto; }

/* Header between 992px and 1199px: the full menu + right-side tools must fit on one row */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.header .sh-logo { gap: 8px; }
	.header .sh-logo .sh-logo__mark { height: 30px !important; }
	.header .sh-logo__text { font-size: 20px; }
	.header .nav-menu { gap: 10px; }
	.header .nav-menu__link { font-size: 13px; }
	.header .nav-menu__item.has-submenu > .nav-menu__link { padding-inline-end: 14px; }
	.header-right { gap: 6px !important; flex-wrap: nowrap; }
	.header-right .language-select select.select { padding-inline: 14px 30px !important; }
	.header-right .language-select .globe-icon { display: none; }
	.header-right .language-select select.select { max-width: 112px; }
}

/* Arabic and Japanese menu labels are longer: keep the compact header up to 1399px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
	html[dir="rtl"] .header .sh-logo { gap: 8px; }
	html[lang^="ja"] .header .sh-logo { gap: 8px; }
	html[dir="rtl"] .header .sh-logo .sh-logo__mark { height: 30px !important; }
	html[lang^="ja"] .header .sh-logo .sh-logo__mark { height: 30px !important; }
	html[dir="rtl"] .header .sh-logo__text { font-size: 20px; }
	html[lang^="ja"] .header .sh-logo__text { font-size: 20px; }
	html[dir="rtl"] .header .nav-menu { gap: 10px; }
	html[lang^="ja"] .header .nav-menu { gap: 10px; }
	html[dir="rtl"] .header .nav-menu__link { font-size: 13px; }
	html[lang^="ja"] .header .nav-menu__link { font-size: 13px; }
	html[dir="rtl"] .header .nav-menu__item.has-submenu > .nav-menu__link { padding-inline-end: 14px; }
	html[lang^="ja"] .header .nav-menu__item.has-submenu > .nav-menu__link { padding-inline-end: 14px; }
	html[dir="rtl"] .header-right { gap: 6px !important; flex-wrap: nowrap; }
	html[lang^="ja"] .header-right { gap: 6px !important; flex-wrap: nowrap; }
	html[dir="rtl"] .header-right .language-select select.select { padding-inline: 14px 30px !important; }
	html[lang^="ja"] .header-right .language-select select.select { padding-inline: 14px 30px !important; }
	html[dir="rtl"] .header-right .language-select .globe-icon { display: none; }
	html[lang^="ja"] .header-right .language-select .globe-icon { display: none; }
	html[dir="rtl"] .header-right .language-select select.select { max-width: 112px; }
	html[lang^="ja"] .header-right .language-select select.select { max-width: 112px; }
}

/* Language picker: the <select> fills the whole pill, so a click anywhere opens it and the list is as wide as the box */
.language-select { padding: 0 !important; display: inline-flex; align-items: center; position: relative; }
.language-select .globe-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; pointer-events: none; z-index: 1; }
.language-select::before { right: 16px !important; left: auto !important; z-index: 1; }
html[dir="rtl"] .language-select::before { right: auto !important; left: 16px !important; }
.language-select select.select { width: 100%; border-radius: 50px; padding: 8px 36px 8px 40px !important; padding-inline: 40px 36px !important; line-height: 1.5; }
.sh-mobile-langs .language-select { display: flex; width: 100%; }
.sh-mobile-langs .language-select .globe-icon { display: none; }
.sh-mobile-langs .language-select select.select { padding: 12px 40px 12px 18px !important; padding-inline: 18px 40px !important; font-size: 16px; }
@media (max-width: 1199px) { .header-right .language-select .globe-icon { display: none; } .header-right .language-select select.select { padding-inline: 16px 34px !important; } }

/* Mobile menu: separate arrow button for submenus, submenu fits the panel */
.nav-menu--mobile .has-submenu { position: relative; }
.nav-menu--mobile .has-submenu > .nav-menu__link::before { display: none; }
.nav-menu--mobile .has-submenu > .nav-menu__link { padding-inline-end: 52px !important; }
.sh-subtoggle { position: absolute; top: 0; inset-inline-end: 0; width: 48px; height: 49px; display: grid; place-items: center; background: none; border: 0; color: hsl(var(--heading-color)); font-size: 20px; cursor: pointer; }
.sh-subtoggle i { transition: transform .2s; }
.has-submenu.active > .sh-subtoggle { color: hsl(var(--main)); }
.has-submenu.active > .sh-subtoggle i { transform: rotate(180deg); }
.nav-menu--mobile .nav-submenu { width: auto !important; min-width: 0 !important; max-width: none; margin: 0 !important; margin-inline-start: 16px !important; overflow: visible; max-height: none; }
.nav-menu--mobile .nav-submenu__link { white-space: normal; font-size: 15px; }


/* Phones: logo + header tools on one row */
@media (max-width: 575.98px) {
	.header .sh-logo { gap: 6px; }
	.header .sh-logo .sh-logo__mark { height: 28px !important; }
	.header .sh-logo__text { font-size: 19px; }
	.header .header-inner { flex-wrap: nowrap; gap: 8px; }
	.header .header-right { flex-wrap: nowrap; gap: 10px !important; }
	.header .header-right__inner { flex-wrap: nowrap; gap: 10px !important; }
}
@media (max-width: 359.98px) {
	.header .sh-logo__text { font-size: 17px; }
	.header .header-right .theme-switch, .header .header-right .header-right__button.white-version { display: none; }
}

/* Cards are always image on top, text below (list view removed). */
@media (min-width: 424px) and (max-width: 575px) { .product-item { display: block; } } /* template made cards side-by-side here */
/* Product images keep the cover ratio at every card width (template capped them at 156px tall and cropped wide cards) */
.product-item__thumb { max-height: none !important; }
.product-item__thumb img.cover-img, .product-item__thumb > a > img { width: 100%; height: auto; aspect-ratio: 1224 / 784; object-fit: cover; }

/* RTL product page: the share button sits at the left end of the tab bar, so its popup opens towards the page (not off the left edge) */
html[dir="rtl"] .sh-tabbar .social-share__icons,
html[dir="rtl"] .sh-tabbar .social-share__icons.left { right: auto; left: 0; }
html[dir="rtl"] .sh-tabbar .social-share__icons::before,
html[dir="rtl"] .sh-tabbar .social-share__icons.left::before { right: auto; left: 8px; }

/* Cart on phones/tablets: each row becomes a card instead of a sideways-scrolling table */
@media (max-width: 767.98px) {
	.sh-cart-table { min-width: 0 !important; width: 100%; }
	.sh-cart-table thead { display: none; }
	.sh-cart-table, .sh-cart-table tbody, .sh-cart-table tfoot, .sh-cart-table tr, .sh-cart-table td { display: block; width: 100%; }
	.sh-cart-table tr:has(.sh-cart-sumlabel) { width: 100% !important; border-bottom: 0; padding: 8px 0; }
	.sh-cart-table tr { border-bottom: 1px solid hsl(var(--black) / .08); padding: 12px 0; }
	.sh-cart-table td { border: 0 !important; padding: 6px 0 !important; }
	.sh-cart-table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
	.sh-cart-table td[data-label]::before { content: attr(data-label); font-weight: 600; color: hsl(var(--heading-color)); font-size: 14px; }
	.sh-cart-table tr:has(.sh-cart-sumlabel) { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
	.sh-cart-table tr:has(.sh-cart-sumlabel) td { width: auto; text-align: start !important; }
	.table-responsive:has(.sh-cart-table) { overflow-x: visible; }
}

/* Product description: sheet list and numbered steps */
.product-list .sh-sheet { font-weight: 700; color: hsl(var(--heading-color)); }
ol.sh-steps { counter-reset: shstep; list-style: none; padding: 0; }
ol.sh-steps > li { counter-increment: shstep; position: relative; padding-inline-start: 42px; margin-bottom: 14px; }
ol.sh-steps > li::before { content: counter(shstep); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--main)); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* Newsletter sign-up message (inc/subscribers.php) */
.sh-sub-note{font-size:15px;color:#fff;opacity:.95}
.sh-sub-note--err{color:#FFD2C7}

/* Home: Browse by category (replaces the testimonial slider, 17/11) */
.sh-cat { height: 100%; display: flex; flex-direction: column; background: hsl(var(--white)); border: 1px solid hsl(var(--border-color)); border-radius: 16px; overflow: hidden; transition: .2s; }
.sh-cat:hover { box-shadow: 0 16px 40px -18px hsl(var(--black) / .35); transform: translateY(-4px); }
.sh-cat__thumb { display: block; aspect-ratio: 1224 / 784; overflow: hidden; background: hsl(var(--gray-seven)); }
.sh-cat__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sh-cat:hover .sh-cat__thumb img { transform: scale(1.04); }
.sh-cat__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sh-cat__name { font-size: 18px; }
.sh-cat__name .link:hover { color: hsl(var(--main)); }
.sh-cat__count { color: hsl(var(--body-color)); }
.sh-cat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.sh-cat__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; color: hsl(var(--heading-color)); background: hsl(var(--main) / .08); }
.sh-cat__chip:hover { background: hsl(var(--main)); color: #fff; }
.sh-cat__chip img { width: 16px; height: 16px; object-fit: contain; }

/* ---------- Checkout: one page, one button (layout like miabranding.com/thanh-toan) ---------- */
.sh-checkout__title { margin-bottom: 24px; }
.sh-checkout__side { position: sticky; top: 110px; }
.sh-checkout__order { border: 1px solid hsl(var(--gray-five)); border-radius: 12px; padding: 8px 20px; background: hsl(var(--white)); }
.sh-checkout__order .billing-list__item { padding: 12px 0; }
.sh-checkout #payment { margin-top: 20px !important; box-shadow: none !important; border: 1px solid hsl(var(--gray-five)); }
.sh-checkout #payment .card-header { padding: 14px 20px !important; }
.sh-checkout #payment .card-body { padding: 16px 20px !important; }
.sh-checkout #payment .payment-select-card { margin-bottom: 0 !important; }
.sh-checkout__agree { margin: 20px 0; }
.sh-checkout__submit { justify-content: center; }
@media (max-width: 991px) { .sh-checkout__side { position: static; } }

/* Cart coupon (coupons are entered on the cart page only) */
.sh-cart-coupon { margin: 28px 0 8px; max-width: 460px; }
.sh-cart-coupon__row { display: flex; gap: 10px; }
.sh-cart-coupon__row input { flex: 1; min-width: 0; }
.sh-cart-coupon-row .woocommerce-remove-coupon { font-size: 13px; margin-inline-start: 6px; color: #b91c1c; }

/* ---------- Cart (layout like miabranding.com/gio-hang): table + coupon left, totals right, upsell below ---------- */
.sh-cart__box { border: 1px solid hsl(var(--gray-five)); border-radius: 12px; background: hsl(var(--white)); overflow: hidden; }
.sh-cart__table { width: 100%; border-collapse: collapse; }
.sh-cart__table th { background: hsl(var(--gray-seven, 240 20% 97%)); font-weight: 600; font-size: 14px; color: hsl(var(--heading-color)); padding: 14px 12px; text-align: start; }
.sh-cart__table td { padding: 16px 12px; border-top: 1px solid hsl(var(--gray-five)); vertical-align: middle; font-size: 15px; }
.sh-cart__rm { width: 44px; text-align: center !important; }
.sh-cart__rm .remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #b91c1c; font-size: 22px; line-height: 1; text-decoration: none; }
.sh-cart__rm .remove:hover { background: #fee2e2; }
.sh-cart__thumb { width: 96px; }
.sh-cart__thumb img { width: 80px !important; max-width: none !important; height: 56px !important; object-fit: cover; object-position: left center; border-radius: 8px; display: block; }
.sh-cart__name .link { line-height: 1.35; }
.sh-cart__qty { display: inline-flex; align-items: center; border: 1px solid hsl(var(--gray-five)); border-radius: 30px; overflow: hidden; }
.sh-cart__qty button { width: 34px; height: 36px; border: 0; background: none; font-size: 18px; color: hsl(var(--heading-color)); display: inline-flex; align-items: center; justify-content: center; }
.sh-cart__qty input { width: 38px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.sh-cart__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sh-cart__coupon { display: flex; align-items: center; gap: 10px; padding: 16px 12px; border-top: 1px solid hsl(var(--gray-five)); flex-wrap: wrap; }
.sh-cart__coupon input { flex: 1; min-width: 160px; max-width: 280px; }
.sh-cart__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: hsl(var(--heading-color)); font-weight: 500; }
.sh-cart__totals { border: 1px solid hsl(var(--gray-five)); border-radius: 12px; padding: 24px; background: hsl(var(--white)); position: sticky; top: 110px; }
.sh-cart__sum { width: 100%; }
.sh-cart__sum th, .sh-cart__sum td { padding: 12px 0; border-bottom: 1px solid hsl(var(--gray-five)); font-size: 15px; }
.sh-cart__sum th { font-weight: 500; color: hsl(var(--body-color)); }
.sh-cart__sum td { text-align: end; color: hsl(var(--heading-color)); font-weight: 500; }
.sh-cart__sum .woocommerce-remove-coupon { font-size: 13px; color: #b91c1c; margin-inline-start: 6px; }
.sh-cart__total th, .sh-cart__total td { border-bottom: 0; font-size: 18px; font-weight: 700; color: hsl(var(--heading-color)); }
.sh-cart-like { margin-top: 80px; }
@media (max-width: 767px) {
	.sh-cart__table thead { display: none; }
	.sh-cart__table tr { display: grid; grid-template-columns: 40px 88px 1fr; padding: 12px 8px; border-top: 1px solid hsl(var(--gray-five)); }
	.sh-cart__table td { border: 0; padding: 6px 4px; }
	.sh-cart__table td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
	.sh-cart__table td[data-label]::before { content: attr(data-label); color: hsl(var(--body-color)); font-size: 14px; }
	.sh-cart__totals { position: static; }
}

/* My Account: content card starts level with the sidebar card; settings sub-menu labels on one line */
.sh-dashboard .dashboard-body__content { margin-top: 0; }
.sh-dashboard .setting-sidebar-list__link { white-space: nowrap; }

/* Pagination: "Previous" gets the same wide pill as "Next" (template only widened the last item) */
.common-pagination .page-item .page-link.flx-align { width: unset; height: unset; white-space: nowrap; padding: 9px 16px; background-color: hsl(var(--section-bg)); border-color: hsl(var(--section-bg)); }
.common-pagination .page-item .page-link.flx-align:hover, .common-pagination .page-item .page-link.flx-align:focus-visible { color: hsl(var(--white)); background-color: hsl(var(--black)); }

/* Free templates (inc/freebies.php) */
.sh-free-price{color:#1a9b5b}
.sh-gift .sh-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sh-gift__msg{font-size:14px;font-weight:500}
.sh-gift__msg--ok{color:#1a9b5b}
.sh-gift__msg--err{color:#c0392b}
.sh-gift__file{text-transform:none !important;display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;white-space:normal;word-break:break-all}

/* Accessibility: headings use the right level but keep their old size; readable old price; larger tap target. */
.sh-h6{font-size:var(--heading-six);font-weight:800}
.sh-h5{font-size:var(--heading-five);font-weight:700}
p.popular-search__title{font-family:var(--heading-font);color:hsl(var(--heading-color));line-height:1.2}
.product-item__prevPrice,.product-item__prevPrice bdi{color:hsl(var(--body-color))}
.search-box__select select{min-height:24px}
p.sh-h5,p.sh-h6{font-family:var(--heading-font);color:hsl(var(--heading-color));line-height:1.2;margin:0 0 16px}
p.statistics__amount.text-white{color:#fff}
