/* Trang SP / danh muc doc noibo (wp_mu/aaa-sp-web.php – ban thu). Khung chung (luoi, gallery, summary, tab) o style.css; day chi phan rieng. */
.aaa-sw-sp [hidden], .aaa-sw-dg [hidden] { display: none !important; }

/* o chon mau / size (giong aaa-size-buttons tren trang Woo) */
.aaa-sw { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.aaa-sw button, .aaa-sw a.img { min-width: 46px; height: 42px; padding: 0 10px; border: 1px solid #cfcfcf; background: #fff; color: #111; font-size: 14px; font-weight: 500; line-height: 1; border-radius: 0; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.aaa-sw button:hover, .aaa-sw a.img:hover { border-color: #111; }
.aaa-sw button.on { border-color: #111; background: #111; color: #fff; }
.aaa-sw button.oos, .aaa-sw button:disabled { color: #b5b5b5; border-color: #e2e2e2; background: #fff linear-gradient(to top right, transparent calc(50% - .5px), #d5d5d5 50%, transparent calc(50% + .5px)); cursor: not-allowed; }
.aaa-sw button.img, .aaa-sw a.img { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 70px; min-width: 0; padding: 2px; background: #fff; }
.aaa-sw button.img img, .aaa-sw a.img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aaa-sw button.img.on { background: #fff; border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.aaa-sw-size { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.aaa-sw-size button { min-width: 0; width: 100%; margin: 0; padding: 0 4px; }
.aaa-cur { font-weight: 400; color: var(--aj-chu-phu, #555); }
.aaa-fitline { font-size: 13px; color: var(--aj-chu-phu, #555); margin: 0 0 12px; }
.aaa-sz-link { display: inline-block; font-size: 13px; text-decoration: underline; margin: -4px 0 14px; }
.aaa-sw-chon { color: #c0392b; font-size: 14px; margin: 0 0 10px; }
@keyframes aaa-rung { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.aaa-rung { animation: aaa-rung .4s ease; }
@media (prefers-reduced-motion: reduce) { .aaa-rung { animation: none; } }

/* danh muc con (loc nhanh) */
.aaa-sw-con { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 24px; padding: 0; }
.aaa-sw-con a { display: inline-block; padding: 8px 14px; border: 1px solid var(--aj-vien, #e5e5e5); font-size: 13px; color: var(--aj-chu, #111); }
.aaa-sw-con a:hover { border-color: var(--aj-chu, #111); }
.aaa-sw-the .aaa-loop-sizes { font-size: 12px; color: var(--aj-nhat, #888); }
.aaa-sw-the .aaa-loop-sizes { margin-top: 2px; }
.aaa-sw-the.outofstock .product-header img { opacity: .55; }

/* bang size + bao quan trong tab mo ta */
.aaa-size-tbl { overflow-x: auto; margin: 10px 0 6px; }
.aaa-size-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.aaa-size-tbl th, .aaa-size-tbl td { border: 1px solid var(--aj-vien, #e5e5e5); padding: 8px 10px; text-align: center; white-space: nowrap; }
.aaa-size-tbl thead th { background: #f6f6f6; color: var(--aj-chu, #111); font-weight: 600; }
.aaa-size-note { font-size: 12px; color: var(--aj-nhat, #888); }

/* danh gia */
.aaa-sw-dg { list-style: none; margin: 0; padding: 0; }
.aaa-sw-dg .review { border-bottom: 1px solid var(--aj-vien, #e5e5e5); padding: 16px 0; }
.aaa-sw-dg .star-rating { color: #111; letter-spacing: 2px; font-size: 14px; width: auto; height: auto; float: none; overflow: visible; }
.aaa-sw-dg .star-rating::before { content: none; }
.aaa-sw-dg .meta { font-size: 13px; color: var(--aj-nhat, #888); margin: 4px 0 6px; }
.aaa-sw-dg .meta strong { color: var(--aj-chu, #111); }
.aaa-sw-dg .description img { display: inline-block; width: 96px; height: 96px; object-fit: cover; margin: 6px 6px 0 0; }
.aaa-sw-tl { background: #f6f6f6; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.aaa-sw-dg-them { display: block; margin: 20px auto 0; }
/* "Yen tam ve size" (chu dong mo – aaa-size-call ve o trang Woo bang JS, trang noibo ve thang) */
.aaa-fit summary .aaa-sc { display: block; line-height: 1.6; }
.aaa-fit summary .aaa-sc b { color: #23232c; font-weight: 600; letter-spacing: .3px; }
/* "Mau nay con mau khac" (giong aaa-pdp SP09 tren trang Woo) */
.aaa-mau-khac { margin: 18px 0 6px; padding: 12px; border: 1px solid #e4e4e4; background: #fafafa; text-align: left; }
.aaa-mau-khac .t { display: block; font-size: 13px; font-weight: 600; color: #23232c; margin-bottom: 8px; }
.aaa-mau-khac .l { display: flex; gap: 10px; flex-wrap: wrap; }
.aaa-mau-khac a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #23232c; font-size: 13px; line-height: 1.35; padding-right: 6px; }
.aaa-mau-khac img { width: 44px; height: 55px; object-fit: cover; display: block; }
.aaa-mau-khac b { display: block; font-weight: 500; }
.aaa-mau-khac small { display: block; font-size: 12px; color: #5c5c62; text-decoration: underline; text-underline-offset: 2px; }
/* dong khuyen mai duoi gia (chuong trinh dang chay noibo – giong aaa-market-links tren trang Woo) */
.aaa-sw-sp .aaa-wp { margin: 0 0 26px; font-size: 17px; font-weight: 600; letter-spacing: .1px; line-height: 1.35; color: #d6333b; }
.aaa-sw-sp .aaa-wp:has(+ .aaa-wp2) { margin-bottom: 3px; }
.aaa-sw-sp .aaa-wp2 { margin: 0 0 22px; font-size: 13px; line-height: 1.4; color: #5c5c62; }
.aaa-sw-sp .aaa-wp3 { font-size: 14px; color: #23232c; line-height: 1.45; }
.aaa-sw-sp .summary .price:has(+ .aaa-wp) { margin-bottom: 4px; }
@media (min-width: 992px) { .aaa-sw-sp .aaa-wp { margin-bottom: 50px; } .aaa-sw-sp .aaa-wp2 { margin-bottom: 40px; } }

/* ===== như app – điện thoại: thanh mua dính đáy + bảng chọn size trượt lên ===== */
.aaa-sw-thanh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e6e6e6; box-shadow: 0 -4px 16px rgba(0,0,0,.06); transform: translateY(110%); transition: transform .22s ease; }
.aaa-sw-thanh.on { transform: none; }
.aaa-sw-thanh-gia { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.aaa-sw-thanh-gia del { display: block; font-size: 12px; font-weight: 400; color: #8a8a8f; }
.aaa-sw-thanh-gia ins { text-decoration: none; }
.aaa-sw-thanh .button { flex: 0 0 auto; height: 46px; padding: 0 22px; margin: 0; }
body.aaa-sw-thanh-on #ajw-btn { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
.aaa-sw-man { position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.aaa-sw-man.on { opacity: 1; pointer-events: auto; }
.aj-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9996; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.aj-sheet.on { transform: none; }
.aj-sheet-keo { width: 40px; height: 4px; border-radius: 2px; background: #d6d6d6; margin: 4px auto 12px; }
.aaa-sw-sheet-dau { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.aaa-sw-sheet-dau img { width: 64px; height: 64px; object-fit: cover; flex: 0 0 64px; }
.aaa-sw-sheet-dau > div { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.35; }
.aaa-sw-sheet-dau b { display: block; font-weight: 500; }
.aaa-sw-sheet-gia { font-weight: 600; margin-top: 2px; }
.aaa-sw-sheet-gia del { color: #8a8a8f; font-weight: 400; margin-right: 6px; }
.aaa-sw-sheet-gia ins { text-decoration: none; }
.aaa-sw-sheet-x { flex: 0 0 auto; width: 36px; height: 36px; font-size: 24px; line-height: 1; background: none; border: 0; }
.aaa-sw-sheet-lb { font-size: 14px; font-weight: 600; margin: 4px 0 8px; }
.aaa-sw-sheet-nhac { color: #c0392b; font-size: 14px; margin: 4px 0 8px; }
.aaa-sw-sheet-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.aaa-sw-sheet-nut .button { height: 50px; margin: 0; }
.aaa-sw-sheet-ngay { background: #fff !important; color: var(--aj-chu, #23232c) !important; border: 1px solid var(--aj-chu, #23232c) !important; }
@media (min-width: 768px) { .aaa-sw-thanh, .aj-sheet, .aaa-sw-man { display: none; } }
@media (prefers-reduced-motion: reduce) { .aaa-sw-thanh, .aj-sheet, .aaa-sw-man { transition: none; } }
