/* Blocks used on Elementor pages (home, service, contact, about). */

/* Elementor container defaults inside our layout */
.ldp .elementor-widget-shortcode .elementor-shortcode > section { margin: 0; }
.ldp .e-con.ldp-boxed, .ldp .elementor-section.ldp-boxed > .elementor-container { max-width: var(--container); }

/* Featured categories */
.ldp-fcats__grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 20px 8px; }
.ldp-fcats__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font: 400 14px/1.4 var(--font); color: var(--n-900); }
.ldp-fcats__img { position: relative; width: 80px; height: 80px; display: grid; place-items: center; border-radius: var(--r-md); }
.ldp-fcats__img img { width: 80px; height: 80px; object-fit: contain; transition: transform .2s var(--ease); }
.ldp-fcats__item:hover img { transform: translateY(-3px); }
.ldp-fcats__img em { position: absolute; top: -4px; right: -18px; padding: 1px 6px; border-radius: 4px; background: var(--red-50); color: var(--red-500); font: 600 12px/1.5 var(--font); font-style: normal; }

/* Recently viewed */
.ldp-viewed__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

/* Flash sale */
.ldp-flash { padding: 20px 24px 24px; border-radius: var(--r-lg); background: linear-gradient(90deg, #e31b1b 0%, #ff4d1a 55%, #ff7a00 100%); }
.ldp-flash__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ldp-flash__title { display: flex; align-items: center; gap: 12px; color: var(--yellow); flex-wrap: wrap; }
.ldp-flash__title h2 { margin: 0; color: #fff; font: 800 italic 32px/1.1 var(--font); letter-spacing: .5px; }
.ldp-countdown { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; margin-left: 4px; }
.ldp-countdown span { margin-right: 4px; font-weight: 500; }
.ldp-countdown b { min-width: 34px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #1a1d23; color: #fff; font: 700 15px/1 var(--font); }
.ldp-countdown i { font-style: normal; font-weight: 700; }
.ldp-flash__tabs { display: flex; gap: 8px; }
.ldp-flash__tabs button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .18); color: #fff; font: 600 13px/1 var(--font); cursor: pointer; }
.ldp-flash__tabs button.is-active { background: #fff; color: var(--red-500); }
.ldp-flash .ldp-card { border-color: transparent; }

/* Product tabs (Linh kiện / Phụ kiện) */
.ldp-ptabs__desc { font-size: 14px; color: var(--n-700); margin: 0 0 16px; line-height: 1.7; }
.ldp-ptabs__desc p { margin: 0; }
.ldp-notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r-sm); background: var(--blue-50); color: var(--n-700); font-size: 13px; }
.ldp-notice .ldp-icon { color: var(--blue-600); }

/* TikTok */
.ldp-tiktok { padding: 24px; border-radius: var(--r-lg); background: #1a1d23; color: #fff; }
.ldp-tiktok__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ldp-tiktok__head h2 { color: #fff; font: 700 24px/1.3 var(--font); margin: 0; }
.ldp-tiktok__head p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.ldp-tiktok__item { position: relative; display: block; aspect-ratio: 241 / 420; border-radius: var(--r-md); overflow: hidden; background: #000; color: #fff !important; }
.ldp-tiktok__item img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .3s var(--ease); }
.ldp-tiktok__item:hover img { transform: scale(1.04); }
.ldp-tiktok__item::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.ldp-tiktok__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .25); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 1; }
.ldp-tiktok__meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.ldp-tiktok__meta small { font-size: 12px; opacity: .9; }
.ldp-tiktok__meta b { font: 500 14px/1.45 var(--font); }
.ldp-tiktok .ldp-carousel__nav.prev { left: auto; right: 52px; top: -44px; transform: none; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.ldp-tiktok .ldp-carousel__nav.next { right: 0; top: -44px; transform: none; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.ldp-tiktok .ldp-carousel__nav[disabled] { opacity: .35; }

/* About block (Elementor native widgets get these classes via "CSS Classes") */
.ldp-about-img img { border-radius: var(--r-lg); }
.ldp-eyebrow .elementor-heading-title { color: var(--red-500) !important; font: 700 12px/1.4 var(--font) !important; letter-spacing: .5px; text-transform: uppercase; }
.ldp-checks .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Reviews – Figma 10 */
.ldp-reviews__row { display: grid; grid-template-columns: 280px repeat(3, minmax(0, 1fr)); gap: 16px; }
.ldp-reviews__google { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border-radius: 14px; background: var(--blue-50); text-align: center; }
.ldp-reviews__google b { color: var(--blue-700); font: 700 14px/1.5 var(--font); }
.ldp-reviews__google strong { font: 800 48px/1.25 var(--font); color: var(--n-900); }
.ldp-reviews__google small { color: var(--n-500); font-size: 12px; line-height: 1.5; }
.ldp-stars { display: inline-flex; gap: 2px; color: var(--yellow); letter-spacing: 2px; font-size: 16px; }
.ldp-stars .ldp-icon { flex: none; }
.ldp-reviews__card { padding: 20px; border: 1px solid var(--n-200); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ldp-reviews__top { display: flex; align-items: center; justify-content: space-between; }
.ldp-reviews__top .q { color: var(--blue-100); }
.ldp-reviews__card p { margin: 0; color: var(--n-700); font: 400 14px/1.55 var(--font); flex: 1; min-height: 88px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ldp-reviews__who { display: flex; gap: 10px; align-items: center; }
.ldp-reviews__who .av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blue-600); color: #fff; display: grid; place-items: center; font: 700 16px/1 var(--font); }
.ldp-reviews__who b { display: block; font: 600 14px/1.5 var(--font); }
.ldp-reviews__who small { color: var(--n-500); font-size: 12px; line-height: 1.5; }

/* Home: every block is a white 16px card on the #f3f5f8 page (Figma 5:2) */
body.ldp.home { background: var(--n-100); }
.ldp .e-con.ldp-sec > .e-con-inner { background: #fff; border-radius: var(--r-lg); padding: 24px; }
.ldp .e-con.ldp-sec:not(:has(.elementor-shortcode > *)):has(.elementor-shortcode) { display: none; }
.ldp-sec .ldp-section-head { margin-bottom: 20px; }
.ldp-sec .ldp-ptabs__desc { font-size: 14px; line-height: 1.6; color: var(--n-700); margin: 0 0 16px; }
.ldp-sec .ldp-ptabs__desc b { color: var(--n-900); font-weight: 700; }

/* Home "Về chúng tôi" – Figma 9 */
.ldp .ldp-about-media { position: relative; }
.ldp .ldp-about-media .ldp-about-img img { width: 100%; aspect-ratio: 612 / 455; object-fit: cover; border-radius: var(--r-lg); display: block; }
.ldp .ldp-about-media > .elementor-widget-html { position: absolute; left: 24px; bottom: 24px; margin: 0; width: auto; }
.ldp-about-badge { display: flex; align-items: center; gap: 12px; max-width: 240px; padding: 12px 16px; border-radius: var(--r-md); background: #fff; box-shadow: 0 8px 24px rgba(15, 33, 64, .16); }
.ldp-about-badge span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red-500); color: #fff; display: grid; place-items: center; font: 700 18px/1 Georgia, serif; }
.ldp-about-badge b { font: 600 14px/1.4 var(--font); color: var(--n-900); }
.ldp .ldp-about-title .elementor-heading-title { font: 800 32px/1.25 var(--font) !important; color: var(--blue-600) !important; }
.ldp .ldp-about-quote .elementor-heading-title { font: italic 500 18px/1.4 var(--font) !important; color: var(--blue-600) !important; }
.ldp .ldp-sec--about .elementor-widget-text-editor { font-size: 14px; line-height: 1.6; color: var(--n-700); }
.ldp .ldp-sec--about .elementor-widget-text-editor p { margin: 0 0 12px; }
.ldp .ldp-sec--about .elementor-widget-text-editor p:last-child { margin: 0; }
.ldp .ldp-about-btns .elementor-button { min-width: 112px; justify-content: center; }

/* Brands */
.ldp-brands__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.ldp-brands__grid a { height: 72px; display: grid; place-items: center; border: 1px solid var(--n-200); border-radius: var(--r-md); background: #fff; padding: 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.ldp-brands__grid a:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.ldp-brands__grid img { max-height: 48px; width: auto; object-fit: contain; }

/* News */
.ldp-news__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ldp-news__card { display: flex; flex-direction: column; gap: 12px; padding: 10px; border: 1px solid var(--n-200); border-radius: var(--r-md); background: #fff; color: var(--n-900) !important; }
.ldp-news__card:hover { box-shadow: var(--shadow-md); }
.ldp-news__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--n-100); }
.ldp-news__img img { width: 100%; height: 100%; object-fit: cover; }
.ldp-news__t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 500 14px/1.5 var(--font); padding: 0 4px 6px; }

/* Contact info + forms */
.ldp-cinfo__row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--n-200); }
.ldp-cinfo__ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; }
.ldp-cinfo__tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ldp-cinfo__tx small { color: var(--n-500); font-size: 12px; }
.ldp-cinfo__tx b { font: 600 14px/1.5 var(--font); color: var(--n-900); }
.ldp-cinfo .ldp-btn { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.ldp-btn--zalo { background: var(--blue-500); }
.ldp-form { display: flex; flex-direction: column; gap: 14px; }
.ldp-form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ldp-form input[type="text"], .ldp-form input[type="tel"], .ldp-form input[type="email"], .ldp-form select, .ldp-form textarea,
.ldp input.input-text, .ldp select.ldp-select, .ldp textarea.input-text {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--n-250); border-radius: var(--r-sm); background: #fff; font: 400 15px/1.4 var(--font); color: var(--n-900); outline: 0; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.ldp-form textarea { min-height: 120px; resize: vertical; }
.ldp-form input:focus, .ldp-form select:focus, .ldp-form textarea:focus, .ldp input.input-text:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(79, 147, 222, .18); }
.ldp-form ::placeholder { color: #9ca3af; }
.ldp-form .ldp-btn { align-self: flex-start; min-height: 48px; padding: 0 24px; }
.ldp-form__check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--n-700); }
.ldp-form__msg { margin: 0; font-size: 13px; color: var(--green); }

/* Service price lists */
.ldp-svc { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--n-200); scroll-margin-top: 140px; }
.ldp-svc__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ldp-svc__head h2 { margin: 0; font-size: 22px; }
.ldp-svc__head p { margin: 2px 0 0; font-size: 13px; color: var(--n-500); }
.ldp-svc__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.ldp-svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; border: 1px solid var(--n-200); border-radius: var(--r-md); padding: 0 16px; }
.ldp-svc__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--n-200); }
.ldp-svc__row i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); flex: none; }
.ldp-svc__row b { flex: 1; font: 600 14px/1.4 var(--font); }
.ldp-svc__row span { color: var(--red-500); font: 700 13px/1.4 var(--font); }
.ldp-svc__row .ldp-btn { min-height: 34px; padding: 6px 14px; font-size: 13px; }

/* Elementor widgets polish */
.ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-wrapper { display: flex; align-items: center; gap: 14px; text-align: left; }
.ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-img { margin: 0 !important; width: 56px !important; flex: none; }
.ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-img img { width: 56px; height: 56px; padding: 10px; border: 1px solid var(--n-200); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); object-fit: contain; }
.ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-title { margin: 0; font: 500 16px/1.4 var(--font); color: var(--n-900); }
.ldp .ldp-banner img { width: 100%; border-radius: var(--r-lg); display: block; }
.ldp .elementor-accordion .elementor-tab-title, .ldp .e-n-accordion-item-title { font-family: var(--font); }

@media (max-width: 1100px) {
	.ldp-fcats__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.ldp-news__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ldp-news__grid > :nth-child(5) { display: none; }
	.ldp-reviews__row { grid-template-columns: 1fr 1fr; }
	.ldp-viewed__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ldp-viewed__row > :nth-child(n+4) { display: none; }
}
@media (max-width: 991px) {
	.ldp-fcats__grid { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; gap: 14px 10px; padding-bottom: 4px; }
	.ldp-fcats__grid::-webkit-scrollbar { display: none; }
	.ldp-fcats__item { font-size: 12px; }
	.ldp-fcats__img, .ldp-fcats__img img { width: 64px; height: 64px; }
	.ldp-fcats__img em { right: -8px; font-size: 10px; }
	.ldp-viewed__row { display: flex; overflow-x: auto; scrollbar-width: none; }
	.ldp-viewed__row > * { flex: 0 0 260px; display: flex !important; }
	.ldp-flash { padding: 14px 12px 16px; border-radius: 0; margin: 0 calc(-1 * var(--gutter)); }
	.ldp-flash__title h2 { font-size: 22px; }
	.ldp-flash__title .ldp-icon { width: 22px; height: 22px; }
	.ldp-countdown { font-size: 12px; }
	.ldp-countdown b { min-width: 26px; height: 26px; font-size: 13px; }
	.ldp-flash__tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
	.ldp-flash__tabs button { flex: none; height: 32px; font-size: 12px; }
	.ldp-tiktok { padding: 16px; border-radius: 0; margin: 0 calc(-1 * var(--gutter)); }
	.ldp-tiktok__head h2 { font-size: 18px; }
	.ldp-tiktok .ldp-carousel__track { grid-auto-columns: 42%; }
	.ldp-reviews__row { display: flex; overflow-x: auto; scrollbar-width: none; }
	.ldp-reviews__row > * { flex: 0 0 78%; }
	.ldp-reviews__google { flex-basis: 70%; }
	.ldp-brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.ldp-brands__grid a { height: 56px; padding: 8px; }
	.ldp-news__grid { display: flex; overflow-x: auto; scrollbar-width: none; gap: 12px; }
	.ldp-news__grid > * { flex: 0 0 64%; display: flex !important; }
	.ldp-svc { padding: 16px; }
	.ldp-svc__grid { grid-template-columns: 1fr; }
	.ldp-form__row2 { grid-template-columns: 1fr; }
	.ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-title { font-size: 13px; }
	.ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-img, .ldp .elementor-widget-image-box.ldp-usp .elementor-image-box-img img { width: 44px !important; height: 44px; }
	.ldp .ldp-banner img { border-radius: var(--r-md); }
	.ldp .e-con.ldp-sec > .e-con-inner { padding: 16px 12px; border-radius: var(--r-md); }
	.ldp .ldp-about-title .elementor-heading-title { font-size: 24px !important; }
	.ldp .ldp-about-media > .elementor-widget-html { left: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
	/* 4 nút Xem thêm / Profile / Dịch vụ / Youtube trên 1 dòng */
	.ldp .ldp-about-btns { flex-wrap: nowrap !important; gap: 6px !important; }
	.ldp .ldp-about-btns > .elementor-widget-button { flex: 1 1 0 !important; min-width: 0; width: auto !important; }
	.ldp .ldp-about-btns .elementor-button { min-width: 0; width: 100%; padding: 10px 4px !important; font-size: 12px !important; white-space: nowrap; }
	.ldp .ldp-about-btns .elementor-button-icon { display: none; }
}
.ldp-about-badge span:empty::before { content: "\201C"; font: 700 26px/1 Georgia, serif; margin-top: 10px; }
