/* ===== SangShoes 2026 theme CSS — redesign theo mockup Fable 5 (Plus Jakarta Sans, navy #0E2A6E / do #C6281F) ===== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== Scrollbar tuy chinh theo mau site (thay scrollbar mac dinh cua trinh duyet) ===== */
* { scrollbar-width: thin; scrollbar-color: #D6DCE8 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #D6DCE8; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #C6281F; }

/* An scrollbar rieng cho cac hang cuon ngang (hero carousel, product row...) */
[data-hscroll] { scrollbar-width: none; }
[data-hscroll]::-webkit-scrollbar { display: none; }

body {
	margin: 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	background: #F9F9F9;
	color: #16181D;
	font-size: 15px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
a { color: #0E2A6E; text-decoration: none; }
a:hover { color: #C6281F; }
img { max-width: 100%; height: auto; display: block; }
/* appearance:none: iOS Safari mac dinh ve nen he thong (push-button) cho <button>, lam nut +/- o gio hang
   va cac nut icon khac hien nen trang du da khai background:none. Moi nut cua theme deu tu khai style
   (inline hoac class .ss-btn/.ss-star-btn/...) nen bo chrome mac dinh la an toan. */
button { font-family: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

.ss-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== Grid utilities ===== */
.ss-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ss-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ss-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ss-cat-row { display: flex; gap: 26px; overflow-x: auto; padding: 12px 0 8px; scrollbar-width: none; }
.ss-cat-row::-webkit-scrollbar { display: none; }
.ss-cat-item { flex-shrink: 0; text-align: center; width: 104px; transition: transform .25s ease; }
.ss-cat-item:hover { transform: translateY(-2px); }
.ss-cat-icon { width: 96px; height: 96px; border-radius: 999px; margin: 0 auto 12px; }
.ss-review-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.ss-review-wrap { overflow: visible; }
.ss-review-viewport { overflow: hidden; }
.ss-review-track::-webkit-scrollbar { display: none; }
.ss-review-card { scroll-snap-align: start; flex-shrink: 0; width: 360px; display: flex; flex-direction: column; }
.ss-review-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid #E8E1D6; box-shadow: 0px 4px 12px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; transition: transform .2s ease, box-shadow .2s ease; color: #131315; }
.ss-review-arrow:hover { box-shadow: 0px 6px 16px rgba(0,0,0,0.16); transform: translateY(-50%) scale(1.06); }
.ss-review-arrow:active { transform: translateY(-50%) scale(0.94); }
.ss-review-dot { width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer; padding: 0; background: #E8E1D6; transition: background .25s ease, width .25s ease; }
.ss-review-dot.is-active { background: #FF6A3D; width: 22px; }
@media (max-width: 767px) { .ss-review-arrow { display: none; } }
.ss-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ss-blog-card { display: flex; flex-direction: column; text-decoration: none; color: #131315; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1); background:#fff; border:1px solid #E8E1D6; border-radius:14px; padding:14px; box-shadow:0 6px 18px rgba(19,19,21,0.03); }
.ss-blog-card-body { display: flex; flex-direction: column; flex: 1; }
.ss-blog-card-meta { margin-top: auto; }
.ss-blog-card:hover { transform: translateY(-6px); box-shadow:0 12px 28px rgba(19,19,21,0.08); }
.ss-blog-card-imgwrap { border-radius: 10px; overflow: hidden; border:1px solid #E8E1D6; background:#F6F1EA; aspect-ratio: 16/9; }
.ss-blog-card-img { display: block; width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ss-blog-card:hover .ss-blog-card-img { transform: scale(1.05); }
.ss-blog-card-img-fallback { display: flex; align-items: center; justify-content: center; color: #FF6A3D; font-size: 32px; opacity: 0.5; }
.ss-newsletter-btn:hover { transform: translateY(-2px); box-shadow: 0px 8px 16px rgba(255,106,61,0.3); }
.ss-newsletter-btn:active { transform: translateY(0); }

/* ===== Scroll reveal (fade + slide up khi cuon toi section) ===== */
.ss-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.ss-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Hero: tieu de/mo ta/nut xuat hien tuan tu ===== */
@keyframes ssFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.ss-hero-anim h1, .ss-hero-anim p, .ss-hero-anim div { opacity: 0; animation: ssFadeUp .8s cubic-bezier(.16,1,.3,1) forwards; }
.ss-hero-anim h1 { animation-delay: .1s; }
.ss-hero-anim p { animation-delay: .28s; }
.ss-hero-anim div { animation-delay: .46s; }

/* ===== Header icon buttons + search ===== */
.ss-icon-btn { transition: transform .2s ease, color .2s ease; }
.ss-icon-btn:hover { transform: translateY(-2px); color: #FF6A3D; }
.ss-search { transition: border-color .2s ease, box-shadow .2s ease; }
.ss-search:focus { border-color: #131315; box-shadow: 0 0 0 3px rgba(19,19,21,0.08); }

/* ===== Header: dropdown tai khoan ===== */
.ss-account-menu { position: relative; }
.ss-account-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border: 1px solid #E8E1D6; border-radius: 8px; box-shadow: 0px 8px 24px rgba(0,0,0,0.12); min-width: 200px; z-index: 50; padding: 8px; }
.ss-account-dropdown.is-open { display: block; }
.ss-account-dropdown-hello { padding: 10px 12px; font-size: 13px; color: #5B6472; border-bottom: 1px solid #E8E1D6; margin-bottom: 6px; }
.ss-account-dropdown-hello strong { color: #131315; }
.ss-account-dropdown a { display: block; padding: 10px 12px; font-size: 14px; border-radius: 6px; color: #131315; text-decoration: none; transition: background .15s ease; }
.ss-account-dropdown a:hover { background: #F6F1EA; color: #131315; }

/* ===== Footer social + Floating action buttons ===== */
.ss-foot-social { transition: transform .2s ease, background .2s ease; }
.ss-foot-social:hover { transform: translateY(-3px); background: #FF6A3D; border-color: #FF6A3D; }
.ss-fab { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.ss-fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0px 6px 18px rgba(0,0,0,0.28); }
.ss-fab:active { transform: scale(0.95); }
@keyframes ss-fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(198,40,31,0.5); } 70% { box-shadow: 0 0 0 12px rgba(198,40,31,0); } 100% { box-shadow: 0 0 0 0 rgba(198,40,31,0); } }
.ss-fab-pulse { animation: ss-fab-pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .ss-fab-pulse { animation: none; } }

/* ===== Trust bar item hover ===== */
.ss-trust-item { transition: transform .2s ease; }
.ss-trust-item i { transition: color .2s ease; }
.ss-trust-item:hover { transform: translateY(-3px); }
.ss-trust-item:hover i { color: #FF6A3D; }

/* ===== Shop layout (sidebar + grid) ===== */
.ss-shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; padding-bottom: 48px; }
@media (max-width: 767px) { .ss-shop-layout { grid-template-columns: 1fr; } }

/* ===== Shop filters micro-interactions ===== */
.ss-sf-brand { transition: background .15s ease, padding-left .15s ease; border-radius: 6px; }
.ss-sf-brand:hover { background: #F6F1EA; padding-left: 6px; }
.ss-sf-size { border: 1px solid #E8E1D6; background: #fff; color: #131315; transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease; }
.ss-sf-size:hover { transform: translateY(-2px); border-color: #131315; }
.ss-sf-size.is-on { border-color: #FF6A3D; background: #FF6A3D; color: #fff; }
.ss-sf-clear { transition: opacity .15s ease; }
.ss-sf-clear:hover { opacity: 0.7; text-decoration: underline; }
.ss-sf-brand-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #C24818; padding: 8px 0 0; cursor: pointer; background: none; border: none; }
.ss-sf-brand-toggle:hover { opacity: 0.7; }
.ss-sf-brand-toggle i { transition: transform .15s ease; font-size: 11px; }
.ss-sf-brands.is-expanded .ss-sf-brand-toggle i { transform: rotate(180deg); }

/* ===== Product page qty stepper ===== */
.ss-qty-minus, .ss-qty-plus { transition: color .15s ease, background .15s ease; border-radius: 6px; }
.ss-qty-minus:hover, .ss-qty-plus:hover { background: #F4F6FA; color: #0E2A6E; }

/* An mui ten len/xuong mac dinh cua trinh duyet cho input[type=number] - da co nut rieng +/- roi,
   khong can nut nguyen sinh chong len (Chrome/Edge con to nen xam sau mui ten khi hover). */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ===== Checkout: payment method card + dia chi da luu (2 nhom radio rieng) ===== */
.ss-pay-option, .ss-addr-option { transition: transform .2s ease, box-shadow .2s ease; }
.ss-pay-option:hover, .ss-addr-option:hover { transform: translateY(-2px); box-shadow: 0px 6px 14px rgba(0,0,0,0.08); }

/* ===== Tai khoan (My Account) ===== */
.ss-acc-tabs-mobile { display: none; overflow-x: auto; }
.ss-acc-tab { transition: background .2s ease; }
.ss-acc-tab:hover { background: #F6F1EA; }
.ss-icon-action { transition: transform .2s ease, box-shadow .2s ease; }
.ss-icon-action:hover { transform: translateY(-2px); box-shadow: 0px 4px 10px rgba(0,0,0,0.1); }
.ss-order-table tbody tr { transition: background .15s ease; }
.ss-order-table tbody tr:hover { background: #FAF6F0; }
.ss-order-cards { display: none; flex-direction: column; gap: 16px; }
.ss-order-card-m { transition: transform .2s ease, box-shadow .2s ease; }
.ss-order-card-m:hover { transform: translateY(-3px); box-shadow: 0px 6px 16px rgba(0,0,0,0.08); }
@media (max-width: 1023px) {
	.ss-acc-layout { grid-template-columns: 1fr !important; }
	.ss-acc-sidebar { display: none !important; }
	.ss-acc-tabs-mobile { display: flex !important; }
	.ss-order-table-wrap { display: none !important; }
	.ss-order-cards { display: flex !important; }
}
/* Restyle nhe form/dia chi mac dinh cua WooCommerce (form-edit-account, form-edit-address) cho khop giao dien */
.woocommerce-EditAccountForm .woocommerce-form-row, .woocommerce-address-fields .woocommerce-form-row { margin-bottom: 16px; max-width: 400px; }
.woocommerce-EditAccountForm label, .woocommerce-address-fields label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.woocommerce-EditAccountForm .input-text, .woocommerce-address-fields .input-text, .woocommerce-address-fields select {
	height: 46px; border: 1px solid #E8E1D6; border-radius: 8px; padding: 0 14px; font-size: 14px; width: 100%; max-width: 400px;
	outline: none; font-family: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce-EditAccountForm .input-text:focus, .woocommerce-address-fields .input-text:focus { border-color: #131315; box-shadow: 0 0 0 3px rgba(19,19,21,0.08); }
.woocommerce-EditAccountForm fieldset { border: none; padding: 0; margin: 20px 0 0 0; }
.woocommerce-EditAccountForm legend { font-size: 16px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.woocommerce-EditAccountForm button, .woocommerce-address-fields button, .woocommerce-Address a.edit {
	background: #FF6A3D; color: #fff; font-weight: 700; font-size: 14px; border: none; border-radius: 8px; padding: 14px 28px;
	cursor: pointer; text-decoration: none; display: inline-block; transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce-EditAccountForm button:hover, .woocommerce-address-fields button:hover, .woocommerce-Address a.edit:hover { transform: translateY(-2px); box-shadow: 0px 8px 16px rgba(255,106,61,0.3); }
.woocommerce-form-row--first, .woocommerce-form-row--last { display: inline-block; width: 48%; }
.woocommerce-form-row--last { margin-left: 4%; }
@media (max-width: 480px) { .woocommerce-form-row--first, .woocommerce-form-row--last { width: 100%; margin-left: 0; } }

/* ===== Trang 404 ===== */
.ss-404-num { font-size: 160px; font-weight: 800; color: #131315; line-height: 1; }
.ss-404-img { width: 240px; height: 240px; flex-shrink: 0; margin: 0 -14px; animation: ss404Float 3.2s ease-in-out infinite; }
@keyframes ss404Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ss-404-anim { opacity: 0; animation: ssFadeUp .6s cubic-bezier(.16,1,.3,1) forwards; }
.ss-404-anim.d1 { animation-delay: .1s; }
.ss-404-anim.d2 { animation-delay: .22s; }
.ss-404-anim.d3 { animation-delay: .34s; }
.ss-link-arrow { transition: gap .2s ease; }
.ss-link-arrow:hover { gap: 10px; }
@media (max-width: 640px) {
	.ss-404-num { font-size: 88px; }
	.ss-404-img { width: 140px; height: 140px; margin: 0 -8px; }
}

/* ===== Trang FAQ ===== */
.ss-faq-item { transition: background .2s ease; }
.ss-faq-item:hover { background: #FAF6F0; }
.ss-faq-chevron { transform: rotate(90deg); }
.ss-faq-item.is-open .ss-faq-chevron { transform: rotate(270deg); }

/* ===== Accordion "Van chuyen/Doi tra/Hang order" (trang chi tiet san pham) - dung <details> nguyen sinh ===== */
.ss-pd-accordion-chevron { transition: transform .15s ease; transform: rotate(90deg); }
.ss-pd-accordion[open] .ss-pd-accordion-chevron { transform: rotate(270deg); }
.ss-cat-pill { transition: transform .2s ease; }
.ss-cat-pill:hover { transform: translateY(-2px); }

/* ===== Trang Chinh sach doi tra (container rieng, typography dung chung .ss-article) ===== */
.ss-toc-link { transition: gap .2s ease; }
.ss-toc-link:hover { gap: 12px; }
.ss-contact-card { transition: transform .2s ease, box-shadow .2s ease; }
.ss-contact-card:hover { transform: translateY(-3px); box-shadow: 0px 6px 16px rgba(0,0,0,0.08); }

/* ===== .ss-article: typography DUNG CHUNG cho moi noi dung dang bai (blog, mo ta san pham, chinh sach...) ===== */
.ss-article h1 { font-size: 26px; font-weight: 700; margin: 0 0 16px 0; }
.ss-article h2 { font-size: 22px; font-weight: 700; margin: 32px 0 14px 0; }
.ss-article h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px 0; }
.ss-article h4, .ss-article h5, .ss-article h6 { font-size: 16px; font-weight: 700; margin: 22px 0 10px 0; }
.ss-article p { font-size: 15px; line-height: 26px; margin: 0 0 14px 0; }
.ss-article ul, .ss-article ol { font-size: 15px; line-height: 26px; padding-left: 22px; margin: 0 0 14px 0; }
.ss-article ul li, .ss-article ol li { margin-bottom: 6px; }
.ss-article blockquote { border-left: 3px solid #FF6A3D; background: #F6F1EA; padding: 14px 18px; font-style: italic; font-size: 15px; margin: 0 0 20px 0; border-radius: 0 8px 8px 0; }
.ss-article blockquote p:last-child { margin-bottom: 0; }
.ss-article strong, .ss-article b { font-weight: 700; }
.ss-article em, .ss-article i { font-style: italic; }
.ss-article mark { background: #FFE8D9; color: #131315; padding: 0 3px; border-radius: 3px; }
.ss-article code { font-family: "SF Mono", Consolas, monospace; font-size: 13px; background: #F6F1EA; padding: 2px 6px; border-radius: 4px; color: #DC2626; }
.ss-article pre { background: #131315; color: #F6F1EA; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 22px; margin: 0 0 20px 0; }
.ss-article pre code { background: none; color: inherit; padding: 0; }
.ss-article hr { border: none; border-top: 1px solid #E8E1D6; margin: 28px 0; }
.ss-article a { color: #C24818; text-decoration: underline; }
.ss-article table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 20px 0; }
.ss-article th { text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 2px solid #E8E1D6; }
.ss-article td { padding: 10px 12px; border-bottom: 1px solid #E8E1D6; }
.ss-related-card { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1); display:block; background:#fff; border:1px solid #E8E1D6; border-radius:12px; padding:12px; }
.ss-related-card:hover { transform: translateY(-6px); box-shadow:0 10px 24px rgba(19,19,21,0.08); }
.ss-related-card-img { overflow: hidden; border-radius: 8px; border:1px solid #E8E1D6; background:#F6F1EA; }
.ss-related-card-img img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ss-related-card:hover .ss-related-card-img img { transform: scale(1.06); }
/* !important can thiet: dropdown co inline style="display:none", CSS thuong khong the thang inline style */
.ss-nav-item:hover .ss-nav-dropdown { display: block !important; }
.ss-nav-dropdown a:hover { background: #F6F1EA; color: #FF6A3D !important; }
.ss-share-icon { transition: transform .2s ease, background .2s ease; }
.ss-share-icon:hover { transform: translateY(-2px); background: #FF6A3D !important; color: #fff !important; }
.ss-share-group { margin-left: auto; }
@media (max-width: 480px) {
	.ss-share-group { margin-left: 0; flex-basis: 100%; justify-content: flex-end; }
}
/* Comment form/list mac dinh cua WP - restyle nhe cho khop giao dien */
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	height: 44px; border: 1px solid #E8E1D6; border-radius: 8px; padding: 0 14px; font-size: 14px; width: 100%; max-width: 400px;
	outline: none; font-family: inherit; margin-bottom: 6px; transition: border-color .2s ease;
}
.comment-form textarea { height: auto; min-height: 90px; padding: 12px 14px; max-width: 100%; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #131315; }
.comment-form .comment-form-comment { display: block; }
.comment-form label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.comment-form p { margin-bottom: 14px; }
#commentform .form-submit input {
	background: #FF6A3D; color: #fff; font-weight: 700; font-size: 14px; border: none; border-radius: 8px; padding: 12px 24px;
	cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
#commentform .form-submit input:hover { transform: translateY(-2px); box-shadow: 0px 8px 16px rgba(255,106,61,0.3); }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px 0; }
.comment-list .comment-body { border-bottom: 1px solid #E8E1D6; padding-bottom: 14px; margin-bottom: 14px; }
.comment-list .comment-author .fn { font-size: 14px; font-weight: 700; font-style: normal; }
.comment-list .comment-metadata { font-size: 12px; color: #9CA3AF; }
.comment-list .comment-metadata a { color: #9CA3AF; text-decoration: none; }
.comment-reply-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: block; }

/* ===== Trang Blog (danh sach) ===== */
.ss-blog-featured { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.ss-blog-featured:hover { transform: translateY(-6px); }
.ss-blog-featured:hover .ss-blog-img { transform: scale(1.05); }
.ss-blog-img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ss-sidebar-post { transition: transform .2s ease; }
.ss-sidebar-post:hover { transform: translateX(4px); }
@media (max-width: 1023px) {
	.ss-blog-layout, .ss-blog-detail-layout { grid-template-columns: 1fr !important; }
	.ss-blog-grid3, .ss-related-grid3 { grid-template-columns: 1fr !important; }
	.ss-featured { grid-template-columns: 1fr !important; }
}
/* Grid item mac dinh min-width:auto, noi dung khong co-duoc (vd table) se ep ca cot rong hon man hinh -> tran ngang ca trang */
.ss-blog-layout > *, .ss-blog-detail-layout > * { min-width: 0; }

/* ===== Trang Ve chung toi ===== */
.ss-commit-item { transition: transform .25s ease; }
.ss-commit-item:hover { transform: translateY(-4px); }
.ss-commit-icon { transition: transform .25s ease, background .25s ease; }
.ss-commit-item:hover .ss-commit-icon { transform: scale(1.1); background: #FFF4EF; }
.ss-gallery-item { overflow: hidden; border-radius: 12px; }
.ss-gallery-item img { transition: transform .5s ease; }
.ss-gallery-item:hover img { transform: scale(1.08); }
@media (max-width: 1023px) {
	.ss-story { grid-template-columns: 1fr !important; }
	.ss-commit-grid { grid-template-columns: 1fr !important; }
	.ss-gallery3 { grid-template-columns: 1fr !important; }
}

/* ===== Trang cam on: check pop + fade tuan tu ===== */
@keyframes ssCheckPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.ss-ty-check { opacity: 0; animation: ssCheckPop .5s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: .1s; }
.ss-ty-anim { opacity: 0; animation: ssFadeUp .6s cubic-bezier(.16,1,.3,1) forwards; }
.ss-ty-anim.d1 { animation-delay: .3s; }
.ss-ty-anim.d2 { animation-delay: .42s; }
.ss-ty-anim.d3 { animation-delay: .54s; }
.ss-ty-anim.d4 { animation-delay: .66s; }
@media (max-width: 767px) { .ss-ty-btns { flex-direction: column; } }

/* ===== Section heading row (Sản phẩm bán chạy + Xem tất cả) ===== */
.ss-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ss-section-head h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.ss-view-all { color: #C6281F; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ss-view-all:hover { color: #0E2A6E; }
@media (max-width: 767px) {
	.ss-section-head { margin-bottom: 16px; }
	.ss-section-head h2 { font-size: 20px; line-height: 26px; }
}

/* ===== Eyebrow (nhãn nhỏ trên tiêu đề section/hero) ===== */
.ss-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #C6281F; margin-bottom: 10px; }

/* ===== Buttons (theo palette redesign Fable 5: navy #0E2A6E / do #C6281F) ===== */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 14px 28px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; font-family: inherit; }
.ss-btn-primary { background: #0E2A6E; color: #fff; }
.ss-btn-primary:hover { background: #0C245E; color: #fff; }
.ss-btn-outline { background: #fff; color: #0E2A6E; border: 1.5px solid #0E2A6E; }
.ss-btn-outline:hover { background: #F0F4FC; }
.ss-btn-block { width: 100%; }
.ss-btn:disabled { background: #ECEEF2; color: #9CA3AF; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== Product card ===== */
.ss-product-card { position: relative; display: block; background: #fff; border: 1px solid #E8E1D6; border-radius: 12px; overflow: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.ss-product-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(19,19,21,0.08); }
.ss-product-card .ss-pc-img-wrap { position: relative; background: #fff; aspect-ratio: 1/1; }
.ss-product-card .ss-pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ss-product-card:hover .ss-pc-img-wrap img { transform: scale(1.06); }
.ss-pc-wishlist { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.12); border: none; cursor: pointer; color: #131315; z-index: 2; transition: transform .2s ease, box-shadow .2s ease; }
.ss-pc-wishlist:hover { transform: scale(1.1); box-shadow: 0px 4px 12px rgba(0,0,0,0.18); }
.ss-pc-wishlist:active { transform: scale(0.9); }
.ss-pc-wishlist svg { transition: color .2s ease; }
@keyframes ssPcPulse { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.ss-pc-wishlist.is-pulsing svg { animation: ssPcPulse .35s ease; }
.ss-pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.ss-pc-badge { background: #FF6A3D; color: #131315; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ss-pc-badge-order-ribbon { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(19,19,21,0.85); color: #fff; font-size: 11px; font-weight: 700; text-align: center; padding: 6px 8px; z-index: 2; }
.ss-pc-info { padding: 10px 12px 12px; }
.ss-pc-brand { font-size: 12px; color: #5B6472; margin: 0 0 2px; line-height: 16px; }
.ss-pc-name { font-size: 14px; font-weight: 500; line-height: 18px; margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ss-pc-price-row { line-height: 18px; }
.ss-pc-price { font-size: 15px; font-weight: 700; color: #131315; }
.ss-pc-price-old { font-size: 12px; color: #5B6472; text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.ss-pc-discount { display: inline-block; background: #FEE2E2; color: #DC2626; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }

/* ===== Badges / pills ===== */
.ss-pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.ss-pill-cat { background: #F6F1EA; color: #5B6472; }
.ss-pill-status-pending { background: #F1ECE4; color: #5B6472; }
.ss-pill-status-processing { background: #DBEAFE; color: #2563EB; }
.ss-pill-status-completed { background: #DCFCE7; color: #16A34A; }
.ss-pill-status-cancelled { background: #FEE2E2; color: #DC2626; }

/* ===== Forms ===== */
.ss-field { margin-bottom: 18px; }
.ss-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ss-field .required { color: #DC2626; }
.ss-input, .ss-select, .ss-textarea {
	width: 100%; height: 46px; border: 1px solid #E8E1D6; border-radius: 8px; padding: 0 14px;
	font-size: 15px; font-family: inherit; color: #131315; outline: none; background: #fff;
}
.ss-input:focus, .ss-select:focus, .ss-textarea:focus { border-color: #FF6A3D; }
.ss-textarea { height: auto; padding: 12px 14px; resize: vertical; }
.ss-field-required .ss-input { border-width: 1.5px; }
.ss-input:disabled, .ss-select:disabled { background: #F6F1EA; color: #9CA3AF; cursor: not-allowed; }

/* ===== Tables (thong so ky thuat, don hang) ===== */
.ss-table { width: 100%; border-collapse: collapse; }
.ss-table tr { border-bottom: 1px solid #E8E1D6; }
.ss-table td { padding: 12px 0; font-size: 14px; }
.ss-table td:first-child { color: #5B6472; width: 40%; }
.ss-order-table { width: 100%; border-collapse: collapse; }
.ss-order-table th { text-align: left; font-size: 13px; color: #5B6472; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid #E8E1D6; }
.ss-order-table td { padding: 16px; border-bottom: 1px solid #E8E1D6; font-size: 14px; vertical-align: middle; }

/* ===== Cards / boxes ===== */
.ss-card { background: #F6F1EA; border-radius: 10px; padding: 24px; }
.ss-card-border { background: #fff; border: 1px solid #E8E1D6; border-radius: 10px; padding: 24px; }

/* ===== Breadcrumb ===== */
.ss-breadcrumb { font-size: 13px; color: #5B6472; margin: 16px 0; }
.ss-breadcrumb a { color: #5B6472; }
.ss-breadcrumb a:hover { color: #FF6A3D; }

/* ===== Sticky mobile bottom CTA bar ===== */
.ss-sticky-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: #fff;
	border-top: 1px solid #E8E1D6; padding: 12px 16px; display: none;
	box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
	.ss-container { padding: 0 16px; }
	.ss-grid4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ss-grid3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ss-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ss-blog-grid { grid-template-columns: 1fr !important; }
	.ss-review-card { width: 300px; }
	.ss-hero-h1 { font-size: 28px !important; line-height: 34px !important; }
	.ss-sticky-cta { display: flex; gap: 10px; }
	.ss-desktop-only { display: none !important; }
	.ss-two-col { display: block !important; }
	.ss-pd-mobile-wrap { margin-bottom: 16px; }
	.ss-order-table { display: none !important; }
	.ss-order-cards { display: block !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.ss-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.ss-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.ss-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.ss-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
	.ss-blog-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
}
@media (min-width: 768px) {
	.ss-mobile-only { display: none !important; }
	.ss-order-cards { display: none !important; }
}

/* ===== Two column layout (product detail, cart, checkout, contact) ===== */
.ss-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ss-two-col-cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }

/* ===== Cart item row ===== */
.ss-cart-item {
	display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #E8E1D6; align-items: center;
	border-radius: 8px; transition: background .2s ease;
}
.ss-cart-item:hover { background: #FAF6F0; }
.ss-cart-item-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #F6F1EA; }
.ss-cart-item-info { flex: 1; min-width: 0; }
.ss-cart-item-qty { display: flex; align-items: center; border: 1px solid #E8E1D6; border-radius: 8px; flex-shrink: 0; }
.ss-cart-item-qty button { transition: color .15s ease, background .15s ease; border-radius: 6px; }
.ss-cart-item-qty button:hover { background: #F6F1EA; color: #FF6A3D; }
.ss-cart-item-price { width: 110px; text-align: right; flex-shrink: 0; font-size: 15px; font-weight: 700; color: #C24818; }
.ss-cart-item-remove { flex-shrink: 0; }
.ss-remove-btn { transition: transform .2s ease, color .2s ease; }
.ss-remove-btn:hover { color: #DC2626; transform: scale(1.15) rotate(90deg); }
.ss-continue-link { transition: gap .2s ease; }
.ss-continue-link:hover { gap: 10px; }

@media (max-width: 767px) {
	.ss-two-col-cart { display: block; }
	.ss-cart-item { flex-wrap: wrap; row-gap: 12px; }
	.ss-cart-item-info { flex-basis: 100%; order: 1; }
	.ss-cart-item-img { order: 0; }
	.ss-cart-item-qty { order: 2; }
	.ss-cart-item-price { order: 3; width: auto; flex: 1; text-align: left; }
	.ss-cart-item-remove { order: 4; }
}

/* ===== Product detail: tabs (Mo ta / Thong so / Danh gia) ===== */
.ss-tab-btn { background: none; border: none; padding: 0 0 12px; font-size: 15px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; color: #131315; }
.ss-tab-btn.is-active { border-bottom-color: #FF6A3D; color: #C24818; }

/* ===== Homepage polish: hero + newsletter band ===== */
.ss-hero { height: 420px; }
.ss-newsletter-band { padding: 40px 48px; }
.ss-nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-nl-input { height: 50px; border: 1px solid transparent; background: #fff; color: #131315; border-radius: 10px; padding: 0 18px; font-size: 14px; width: 240px; outline: none; }
.ss-nl-input::placeholder { color: #9CA3AF; }
.ss-nl-input:focus { border-color: #FF6A3D; }
/* Category row: 1 hang tren desktop + tablet (thu gap + icon nho hon o tablet moi vua du 6 icon, do thuc te
   thieu ~20-30px neu giu nguyen gap/icon size cua desktop); chi grid 3 cot tren mobile that (<768px) */
@media (min-width: 768px) { .ss-cat-row { justify-content: center; } }
@media (min-width: 768px) and (max-width: 1023px) {
	.ss-cat-row { gap: 14px; }
	.ss-cat-icon { width: 84px; height: 84px; }
}
@media (max-width: 767px) {
	/* Cot fix cung kich thuoc icon (khong dung auto) de khoang cach icon-icon deu nhau,
	   khong bi lech theo do dai nhan chu (VD "Tat ca san pham" dai hon "Giay nu") */
	.ss-cat-row { display: grid; grid-template-columns: repeat(4, 70px); justify-content: center; column-gap: 14px; row-gap: 16px; }
	.ss-cat-item { width: auto; }
	.ss-cat-icon { width: 70px; height: 70px; }
}
@media (max-width: 380px) {
	.ss-cat-row { column-gap: 8px; grid-template-columns: repeat(4, 64px); }
	.ss-cat-icon { width: 64px; height: 64px; }
}
@media (max-width: 767px) {
	.ss-hero { height: 400px; }
	.ss-newsletter-band { padding: 32px 22px; }
	.ss-nl-form, .ss-nl-input, .ss-newsletter-btn { width: 100%; }
	.ss-nl-form { gap: 12px; }
	.ss-home-hero-img { object-position: 86% center !important; }
	.ss-home-cta { background-position: 86% center !important; }
	.ss-trust-grid { grid-template-columns: repeat(2,1fr) !important; gap:14px !important; padding:22px 18px !important; }
	.ss-foot-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
	.ss-foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start !important; }
}
.ss-foot a:hover { color: #FF6A3D !important; }

/* ===== Size selector (trang chi tiet san pham) ===== */
.ss-size-option { width: 48px; height: 40px; border-radius: 999px; border: 1.5px solid #E8E1D6; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; background: #fff; color: #131315; position: relative; overflow: hidden; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.ss-size-option.is-selected { border-color: #FF6A3D; background: #FF6A3D; color: #131315; }
.ss-size-option.is-oos { cursor: not-allowed; color: #9CA3AF; }
.ss-size-oos-line { position: absolute; width: 56px; height: 1.5px; background: #9CA3AF; transform: rotate(-20deg); }

/* ===== Trang Huong dan chon size ===== */
.ss-step-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ss-step-card:hover { transform: translateY(-3px); box-shadow: 0px 8px 20px rgba(0,0,0,0.07); border-color: #D1D1D4; }
.ss-gender-tab { transition: background .2s ease, color .2s ease; cursor: pointer; }
.ss-sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ss-sg-table th { text-align: center; font-size: 12px; font-weight: 700; color: #5B6472; text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 8px; border-bottom: 2px solid #E5E5E7; }
.ss-sg-table td { text-align: center; padding: 12px 8px; border-bottom: 1px solid #E5E5E7; }
.ss-sg-table tr:last-child td { border-bottom: none; }
.ss-sg-table tr.ss-row-match td { background: #FFF1EC; font-weight: 700; color: #C24818; }
.ss-brand-row { border-bottom: 1px solid #E5E5E7; }
.ss-brand-row:last-child { border-bottom: none; }
.ss-sg-input:focus { border-color: #131315 !important; box-shadow: 0 0 0 3px rgba(19,19,21,0.08); }
@media (max-width: 599px) {
	.ss-calc-row { grid-template-columns: 1fr !important; }
}

/* ===== Phan trang (shop/danh muc) ===== */
.ss-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.ss-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid #E8E1D6; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #131315; text-decoration: none; background: #fff; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.ss-pagination a.page-numbers:hover { border-color: #C24818; color: #C24818; }
.ss-pagination .page-numbers.current { background: #131315; border-color: #131315; color: #fff; }
.ss-pagination .page-numbers.dots { border: none; background: none; }

/* ===== Gallery mobile swipe (trang chi tiet san pham) ===== */
.ss-pd-mobile-track::-webkit-scrollbar { display: none; }
.ss-pd-mobile-dot { width: 7px; height: 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.15); transition: background .25s ease, width .25s ease; }
.ss-pd-mobile-dot.is-active { background: #FF6A3D; width: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ===== WooCommerce notices (loi/thanh cong/thong bao - dang nhap, checkout, coupon, add-to-cart...) ===== */
.ss-wc-notice { list-style: none; margin: 0 0 16px; padding: 0; }
.ss-wc-notice li, .ss-wc-notice.ss-wc-notice--success, .ss-wc-notice.ss-wc-notice--info { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.6; color: #16181D; }
.ss-wc-notice li + li { margin-top: 8px; }
.ss-wc-notice-icon { flex-shrink: 0; display: flex; margin-top: 1px; }
.ss-wc-notice-text strong { font-weight: 700; }
.ss-wc-notice-text a:not(.button) { color: #0E2A6E; font-weight: 600; text-decoration: underline; }
.ss-wc-notice-text a:not(.button):hover { color: #C6281F; }
.ss-wc-notice--error .ss-wc-notice-text, .ss-wc-notice--error .ss-wc-notice-text strong { color: #C6281F; }
.ss-wc-notice--success .ss-wc-notice-text { color: #16A34A; }
.ss-wc-notice--info .ss-wc-notice-text { color: #0E2A6E; }
.ss-wc-notice .button.wc-forward { margin-left: 8px; display: inline-block; border: 1.5px solid #0E2A6E; background: #fff; color: #0E2A6E; font-weight: 700; font-size: 12.5px; padding: 6px 14px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.ss-wc-notice .button.wc-forward:hover { background: #0E2A6E; color: #fff; }

/* ===== Minicart (header) ===== */
@keyframes ssMiniIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ssSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ss-minicart-panel { display: none; }
.ss-minicart-panel.is-open { display: block; animation: ssMiniIn .18s cubic-bezier(.16,1,.3,1); }
.ss-minicart-sheet { animation: ssSheetUp .25s cubic-bezier(.16,1,.3,1); }
.ss-mini-row:hover { background: #F6F1EA; }

@media (max-width: 720px) {
	[data-fgrid] { grid-template-columns: 1fr !important; gap: 24px !important; }
}

@media (max-width: 1024px) {
	#ss-acc-layout { grid-template-columns: 1fr !important; }
	#ss-acc-sidebar { display: none !important; }
	#ss-acc-menu-mobile { display: flex !important; }
}
