/* Font loaded via <link> in index.html */

/* ============================================
   THIÊN HÀ DESIGN & PRINTING - Color Theme
   Based on CMY logo colors:
   - Primary (Cyan):   #00AEEF
   - Secondary (Magenta): #EC008C
   - Accent (Yellow):  #FFD600
   ============================================ */

:root {
  /* Font family */
  --tp-ff-body: 'Montserrat', sans-serif;
  --tp-ff-heading: 'Montserrat', sans-serif;
  --tp-ff-p: 'Montserrat', sans-serif;

  /* === THEME COLORS - Thiên Hà Brand === */
  --tp-theme-primary: #00AEEF;
  --tp-theme-secondary: #EC008C;
  --tp-border-primary: #00AEEF;

  /* Thiên Hà extended palette */
  --th-cyan: #00AEEF;
  --th-cyan-dark: #0088CC;
  --th-cyan-darker: #006699;
  --th-cyan-light: #E8F8FF;
  --th-magenta: #EC008C;
  --th-magenta-dark: #C50075;
  --th-magenta-light: #FFF0F8;
  --th-yellow: #FFD600;
  --th-yellow-dark: #E6C200;
  --th-footer-bg: #003D5C;
  --th-footer-bottom: #002A3F;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
input,
textarea,
select,
button,
label,
td,
th,
div {
  font-family: 'Montserrat', sans-serif !important;
}

/* ============================================
   SEARCH POPUP - Speed Override
   ============================================ */
.search-popup {
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-active .search-popup form {
  transition-delay: 200ms !important;
}

.search-active .search-popup .close-search {
  transition-delay: 300ms !important;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.th-hero-slider {
  width: 100%;
  height: 100%;
}

.th-slide-item {
  display: block;
  width: 100%;
  min-height: 780px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.3s ease;
}

/* Thêm hiệu ứng vignette (viền tối gradient) cho ảnh */
.th-slide-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s ease;
}

.th-slide-item:hover::after {
  background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
}

/* Social sidebar - nổi lên trên slider */
.tp-slider-5-social {
  position: absolute;
  z-index: 50 !important;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-slider-5-social a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  text-align: center;
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  border-radius: 50% !important;
  margin-bottom: 10px !important;
  font-size: 16px;
  transition: all 0.3s ease;
}

.tp-slider-5-social a:hover {
  background: var(--th-cyan) !important;
  border-color: var(--th-cyan) !important;
  color: #fff !important;
  transform: scale(1.12);
}

.tp-slider-5-social span {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg) !important;
  display: block !important;
  margin: 18px auto 0 !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.tp-slider-5-social span::before {
  display: none !important;
}

/* Slider pagination */
.th-slider-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.th-slider-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.th-slider-pagination .swiper-pagination-bullet-active {
  background: var(--th-cyan);
  transform: scale(1.3);
}

@media (max-width: 767px) {
  .th-slide-item {
    min-height: 400px;
  }
}

/* ============================================
   HEADER
   ============================================ */

/* Top bar */
.tp-header-5-top {
  background: var(--th-cyan-light) !important;
}

.tp-header-5-top-shoping a {
  color: var(--th-cyan-dark) !important;
  text-decoration: none !important;
}

/* Header bottom/navbar background */
.tp-header-5-bottom {
  background: var(--tp-common-white) !important;
}

/* Logo sizing */
.tp-header-2-logo img {
  max-height: 56px;
  width: auto;
}

.tpoffcanvas__logo img {
  max-height: 56px;
  width: auto;
}

/* Sticky header */
.header-sticky {
  background-color: var(--tp-common-white) !important;
  box-shadow: 0 2px 20px rgba(0, 174, 239, 0.1) !important;
}

/* Header CTA button */
.tp-header-5-btn {
  background: var(--th-cyan) !important;
}

.tp-header-5-btn::before {
  background: var(--th-cyan-dark) !important;
}

.tp-header-5-btn:hover {
  color: var(--tp-common-white) !important;
}

/* Cart badge */
.tp-header-5-shop span {
  background-color: var(--th-magenta) !important;
}

/* ============================================
   SLIDER / HERO SECTION
   ============================================ */
.tp-slider-5-bg {
  background: var(--th-cyan-light) !important;
}

.tp-slider-5-bg-overlay {
  background: linear-gradient(135deg, #d4f4ff 0%, #e8f8ff 100%) !important;
}

/* Slider subtitle tag */
.tp-slider-5-sub-title {
  background: var(--th-yellow) !important;
  color: var(--th-footer-bg) !important;
}

/* Slider CTA button */
.tp-slider-5-content .tp-btn-red {
  background: var(--th-magenta) !important;
}

.tp-slider-5-content .tp-btn-red::before {
  background: var(--th-magenta-dark) !important;
}

/* Slider price highlight */
.tp-slider-5-price-title span {
  color: var(--th-magenta) !important;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Primary red button → now Magenta */
.tp-btn-red {
  background: var(--th-magenta) !important;
}

.tp-btn-red::before {
  background: var(--th-magenta-dark) !important;
}

/* Border button */
.tp-btn-border span {
  color: var(--th-cyan-dark);
}

.tp-btn-border:hover {
  border-color: var(--th-cyan) !important;
  color: var(--tp-common-white) !important;
}

.tp-btn-border::before {
  background: var(--th-cyan) !important;
}

/* Back to top */
.back-to-top-btn.secondary {
  background: var(--th-magenta) !important;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.tp-section-sub-title {
  color: var(--th-cyan) !important;
}

.tp-section-sub-title.two {
  color: var(--th-magenta) !important;
}

.tp-section-sub-title.five {
  background: var(--th-yellow) !important;
  color: var(--th-footer-bg) !important;
}

/* ============================================
   ABOUT SECTION - Progress bars
   ============================================ */
.tp-about-5-progress-bar {
  background-image: linear-gradient(270deg, #ffffff 0%, var(--th-magenta) 100%) !important;
}

.tp-about-5-progress-bar.two {
  background-image: linear-gradient(270deg, #ffffff 0%, var(--th-cyan) 100%) !important;
}

.tp-about-5-progress-bar span {
  color: var(--th-magenta) !important;
}

.tp-about-5-progress-bar span.two {
  color: var(--th-cyan-dark) !important;
}

/* About call icon */
.tp-about-5-call-icon a {
  color: var(--th-magenta) !important;
  border-color: var(--th-magenta-light) !important;
}

.tp-about-5-call-icon a:hover {
  background: var(--th-magenta) !important;
  color: var(--tp-common-white) !important;
  border-color: var(--th-magenta) !important;
}

/* ============================================
   FEATURE SECTION
   ============================================ */
.tp-feature-2-icon.two {
  border-color: var(--th-cyan-light) !important;
}

/* ============================================
   SERVICE SECTION - Buttons with CMY colors
   ============================================ */
.tp-service-5-btn.one a:hover {
  background: var(--th-cyan) !important;
  color: var(--tp-common-white) !important;
}

.tp-service-5-btn.two a:hover {
  background: var(--th-magenta) !important;
  color: var(--tp-common-white) !important;
}

.tp-service-5-btn.three a:hover {
  background: var(--th-yellow) !important;
  color: var(--th-footer-bg) !important;
}

.tp-service-5-btn.four a:hover {
  background: var(--th-cyan-dark) !important;
  color: var(--tp-common-white) !important;
}

/* Service card hover effect */
.tp-service-5-wrapper:hover {
  box-shadow: 0 10px 40px rgba(0, 174, 239, 0.12);
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.tp-testimonial-5-thumb-icon span {
  background: var(--th-cyan) !important;
}

/* ============================================
   CTA (Call To Action) SECTION
   ============================================ */
.tp-cta-4-area.two {
  background-image: linear-gradient(90deg, var(--th-cyan) 0%, var(--th-footer-bg) 58%, var(--th-magenta) 100%) !important;
}

/* ============================================
   TEXT SLIDER
   ============================================ */
.tp-text-slider-text {
  -webkit-text-stroke-color: var(--th-cyan) !important;
}

/* ============================================
   PRODUCT SECTION
   ============================================ */
.tp-product-bg-overlay.five {
  background: linear-gradient(135deg, #00AEEF 0%, #0077B6 100%) !important;
}

.tp-product-bg-overlay.five-two {
  background: linear-gradient(135deg, #EC008C 0%, #C50075 100%) !important;
}

.tp-product-sub-title.five {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Product card — text trắng trên nền đậm */
.tp-product-bg-overlay.five .tp-product-sub-title,
.tp-product-bg-overlay.five .tp-product-title,
.tp-product-bg-overlay.five-two .tp-product-sub-title,
.tp-product-bg-overlay.five-two .tp-product-title {
  color: #fff !important;
}

.tp-product-bg-overlay.five .tp-btn-border span,
.tp-product-bg-overlay.five-two .tp-btn-border span {
  color: #fff !important;
}

.tp-product-bg-overlay.five .tp-btn-border,
.tp-product-bg-overlay.five-two .tp-btn-border {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.tp-product-bg-overlay.five .tp-btn-border:hover,
.tp-product-bg-overlay.five-two .tp-btn-border:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.tp-product-bg-overlay.five .tp-btn-border::before,
.tp-product-bg-overlay.five-two .tp-btn-border::before {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ============================================
   FEATURED SHOP SECTION
   ============================================ */
.th-featured-shop .tp-section-title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.th-featured-shop .tp-section-sub-title {
  font-size: 13px;
}

.th-featured-shop .tp-btn {
  background: var(--th-cyan) !important;
  color: #fff !important;
}

.th-featured-shop .tp-btn::before {
  background: var(--th-cyan-dark) !important;
}

/* --- Product Card: Soft Modern --- */
/* Override padding gốc từ theme */
.th-featured-shop .product_wrapper {
  padding: 0 !important;
}

.th-featured-shop .product_wrapper.two {
  background: #fff;
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.th-featured-shop .product_wrapper.two:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Bỏ drop-shadow riêng cho phần Sản phẩm liên quan (shop-details) */
.th-related-products .product_wrapper.two {
  filter: none;
}

/* Fix: cho sản phẩm hover nổi lên không bị cắt phần trên */
.th-related-products .swiper-container {
  overflow: visible;
}

.th-related-products .tp-product-slider {
  overflow: hidden;
  padding-top: 10px;
}

/* Ẩn header cũ */
.th-featured-shop .product__top-brand {
  display: none !important;
}

/* --- Vùng ảnh: vuông, radius đều 4 góc --- */
.th-featured-shop .product__thumb {
  /* background: #F5F5F7; */
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* margin: 12px !important; */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.th-featured-shop .product__thumb>a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.th-featured-shop .product__thumb img {
  object-fit: contain !important;
  max-height: 220px;
  width: auto !important;
  max-width: 100%;
  transition: transform 0.4s ease;
}

.th-featured-shop .product_wrapper.two:hover .product__thumb img {
  transform: scale(1.05);
}

/* --- Action Buttons: vuông trắng, góc phải trên --- */
.th-featured-shop .product__action {
  position: absolute !important;
  right: 10px;
  top: 10px;
  gap: 6px;
  opacity: 0;
  visibility: visible !important;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.th-featured-shop .product_wrapper.two:hover .product__action {
  opacity: 1;
  transform: translateX(0);
}

.th-featured-shop .product-action-btn {
  width: 36px !important;
  height: 36px !important;
  background: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #555 !important;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.th-featured-shop .product-action-btn:hover {
  background: var(--th-cyan) !important;
  color: #fff !important;
  transform: scale(1.1);
}

.th-featured-shop .product-action-tooltip {
  display: none !important;
}

/* --- Cart icon: nằm cùng cột action buttons --- */
.th-featured-shop .th-cart-btn {
  background: var(--th-cyan) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(0, 174, 239, 0.3);
}

.th-featured-shop .th-cart-btn:hover {
  background: var(--th-cyan-dark) !important;
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 5px 16px rgba(0, 174, 239, 0.45);
}

/* Ẩn product__add cũ (không còn dùng) */
.th-featured-shop .product__add {
  display: none !important;
}

/* --- Content Area --- */
.th-featured-shop .product__content {
  padding: 14px 16px 20px !important;
  background: #fff;
  text-align: center;
}

/* Ẩn rating */
.th-featured-shop .product__rating {
  display: none !important;
}

.th-featured-shop .product__title {
  margin-bottom: 4px !important;
}

.th-featured-shop .product__title a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  transition: color 0.2s ease;
}

.th-featured-shop .product__title a:hover {
  color: var(--th-cyan) !important;
}

/* Giá hiển thị từ HTML */
.th-featured-shop .th-product-price {
  color: var(--th-magenta);
  font-weight: 700;
  font-size: 15px;
  margin-top: 2px;
}

.th-featured-shop .th-product-price .price-sale {
  color: var(--th-magenta);
  font-weight: 700;
}

.th-featured-shop .th-product-price .price-original {
  color: #aaa;
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
  text-decoration: line-through;
}

/* ============================================
   FOOTER
   ============================================ */
.tp-footer-3-area {
  background-color: var(--th-footer-bg) !important;
}

.tp-footer-title {
  color: var(--tp-common-white) !important;
}

.tp-footer-3-call {
  color: rgba(255, 255, 255, 0.85) !important;
}

.tp-footer-3-call:hover {
  color: var(--th-cyan) !important;
}

.tp-footer-4-list ul li a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.tp-footer-4-list ul li a:hover {
  color: var(--th-cyan) !important;
}

.tp-footer-3-thumb-date.five span {
  color: var(--th-yellow) !important;
}

.tp-footer-3-thumb-date.five p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.tp-footer-2-bottom.tp-footer-3-bottom {
  background-color: var(--th-footer-bottom) !important;
}

.tp-footer-3-copy-paragraph {
  color: rgba(255, 255, 255, 0.6) !important;
}

.tp-footer-3-copy-paragraph a {
  color: var(--th-cyan) !important;
}

.tp-footer-text p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.tp-footer-logo img {
  max-height: 70px;
  width: auto;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=url]:focus,
textarea:focus {
  border-color: var(--th-cyan) !important;
}

/* ============================================
   LINK & HOVER ACCENT
   ============================================ */
a:hover {
  color: var(--th-cyan) !important;
}

/* Menu active/hover */
.tp-main-menu-content ul li:hover>a,
.tp-main-menu-content ul li.active>a {
  color: var(--th-cyan) !important;
}

/* ============================================
   ABOUT HIGHLIGHTS
   ============================================ */

.th-about-highlight-icon {
  color: var(--th-cyan);
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.th-about-highlight-text h6 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.4;
}

.th-about-highlight-item {
  transition: transform 0.3s ease;
}

.th-about-highlight-item:hover {
  transform: translateX(6px);
}

/* Feature row — bỏ border-bottom, giảm padding */
.tp-feature-5-row {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Feature Font Awesome icons */
.th-feature-fa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--th-cyan-light);
  color: var(--th-cyan);
  font-size: 22px;
  transition: all 0.3s ease;
}

.tp-feature-5-wrapper:hover .th-feature-fa-icon {
  background: var(--th-cyan);
  color: #fff;
  transform: scale(1.1);
}

/* Product-top section — nền nhạt phân cách */
.tp-product-2-area {
  background: #F8F9FA;
}

/* Product-top — tiêu đề cân đối với About */
.tp-product-2-area .tp-section-title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.tp-product-2-area .tp-section-sub-title {
  font-size: 13px;
}

/* About — tiêu đề cân đối */
.tp-about-2-area .tp-section-title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.tp-about-2-area .tp-section-paragraph {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* About — bỏ viền mặc định theme cho progres-skill */
.tp-about-2-right-wrapper .th-about-highlights {
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* About — CTA row cân đối */
.tp-about-2-signature {
  flex-wrap: wrap;
  gap: 15px;
}

.tp-about-2-signature .tp-btn {
  padding: 14px 28px;
  font-size: 14px;
  background: var(--th-cyan) !important;
  color: #fff !important;
}

.tp-about-2-signature .tp-btn::before {
  background: var(--th-cyan-dark) !important;
}

.tp-about-2-signature .tp-btn:hover {
  color: #fff !important;
}

/* About — hotline call icon */
.tp-about-4-call-icon a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  background: var(--th-cyan-light) !important;
  color: var(--th-cyan) !important;
  display: inline-block;
  font-size: 18px;
  transition: all 0.3s ease;
}

.tp-about-4-call-icon a:hover {
  background: var(--th-cyan) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
  transform: scale(1.08);
}

.tp-about-4-call-number span {
  font-size: 13px;
  color: #888;
  display: block;
}

.tp-about-4-call-number a {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

/* ============================================
   MISCELLANEOUS
   ============================================ */

/* Selection highlight */
*::-moz-selection {
  background: var(--th-cyan) !important;
  color: var(--tp-common-white) !important;
}

::selection {
  background: var(--th-cyan) !important;
  color: var(--tp-common-white) !important;
}

/* Scrollbar (webkit browsers) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--th-cyan-light);
}

::-webkit-scrollbar-thumb {
  background: var(--th-cyan);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--th-cyan-dark);
}

.tp-header-2-main-menu>nav>ul>li:not(:last-child) {
  margin-right: 40px;
}

.tp-cta-4-setion-title .tp-section-title {
  font-size: 50px;
  color: var(--tp-common-black);
}

/* Blog title - giới hạn 2 dòng */
.tp-blog-content-inner-heading {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Blog cards: equal-height layout */
.tp-blog-4-area .row>[class*="col-"] {
  display: flex;
}

.tp-blog-4-area .tp-blog-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tp-blog-4-area .tp-blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tp-blog-4-area .tp-blog-content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tp-blog-4-area .tp-blog-content-inner .tp-blog-btn {
  margin-top: auto;
}

/* Fixed height: heading = 2 dòng, description = 3 dòng */
.tp-blog-4-area .tp-blog-content-inner-heading {
  height: 2.8em;
  /* 2 × line-height 1.4 */
}

.tp-blog-4-area .tp-blog-content-inner p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
  height: 4.8em;
  /* 3 × line-height 1.6 */
}

.tp-blog-content {
  padding: 15px 4px 15px;
}

/* Blog section — heading nhỏ gọn */
.th-blog-heading {
  font-size: 32px !important;
  text-transform: none;
}

/* Blog slider nav buttons */
.th-blog-prev,
.th-blog-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: transparent;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-blog-prev:hover,
.th-blog-next:hover {
  background: #00AEEF;
  border-color: #00AEEF;
  color: #fff;
}

/* Blog "Xem tất cả" button nhỏ gọn hơn */
.th-blog-viewall {
  padding: 10px 24px !important;
  font-size: 14px !important;
}

/* Blog meta: danh mục trái — ngày phải */
.tp-blog-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tp-blog-date span {
  margin-left: 0;
}


.th-blog-cat {
  display: inline-block;
  background: rgba(0, 174, 239, 0.1);
  color: #00AEEF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tp-blog-wrapper:hover .th-blog-cat {
  background: #00AEEF;
  color: #fff;
}

.th-blog-time {
  font-size: 13px;
  color: #888;
  font-weight: 400;
}

.th-blog-time::before {
  content: "\f073";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 400;
  margin-right: 5px;
  font-size: 12px;
}

/* Blog "Xem thêm" button */
.tp-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00AEEF;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.tp-blog-btn::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s ease;
}

.tp-blog-btn::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00AEEF;
  transition: width 0.3s ease;
}

.tp-blog-btn:hover {
  color: #EC008C;
}

.tp-blog-btn:hover::after {
  transform: translateX(4px);
}

.tp-blog-btn:hover::before {
  width: 100%;
  background: #EC008C;
}

/* TESTIMONIAL ROLE */
.tp-testimonial-5-role {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* TESTIMONIAL AVATAR */
.tp-testimonial-5-thumb .img-avatar-user {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================
   Section backgrounds — tạo nhịp sáng/tối
   ============================================ */

/* Testimonial & Brand — nền cyan cực nhạt */
.tp-testimonial-5-area,
.tp-brand-4-area {
  background: linear-gradient(180deg, #E8F8FF 0%, #F4FBFF 100%);
}

/* ============================================
   UX/UI Enhancements (Micro-interactions, CTA, Typography)
   ============================================ */

/* P3: CTA Buttons Glow Effect */
.tp-btn-red {
  box-shadow: 0 4px 15px rgba(236, 0, 140, 0.2);
  /* CMY Magenta glow */
  transition: all 0.3s ease;
}

/* P2: Micro-interactions for Choose-us and FAQ */
.tp-choose-us-feature-wrapper {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #fff;
  border-radius: 12px;
  padding: 30px 15px;
  /* Ensure there is some padding for background to look good */
}

.tp-faq-5-accordion-item {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Apply hover effects ONLY on devices that support hover (not touchscreens) */
@media (hover: hover) {
  .tp-btn-red:hover {
    box-shadow: 0 8px 25px rgba(236, 0, 140, 0.4);
    transform: translateY(-2px);
  }

  .tp-choose-us-feature-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .tp-faq-5-accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.1);
    /* CMY Cyan tint */
    border-color: rgba(0, 174, 239, 0.2);
  }
}

/* P2: Typography Consistency */
.tp-section-title {
  text-transform: none !important;
  /* Allow natural casing to avoid weird capitalization like "in ấn" -> "In Ấn" */
}

.tp-section-sub-title {
  text-transform: uppercase !important;
  letter-spacing: 2px;
}

@media only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
  .tp-footer-widget-cutm-pdg-3 {
    margin-left: 0;
    padding-left: 0px;
  }
}

@media (max-width: 767px) {
  .tp-cta-4-setion-title .tp-section-title {
    font-size: 36px !important;
  }

  .tp-faq-5-area .tp-section-title {
    font-size: 30px !important;
  }

  /* Fix About Area Signature to be horizontal on mobile */
  .tp-about-2-signature {
    flex-direction: row !important;
    align-items: center !important;
  }

  .tp-about-2-signature .tp-about-4-call-item {
    margin-top: 0 !important;
    margin-left: 20px !important;
    /* Reduce spacing slightly to fit both on screen */
  }
}

/* Custom Contact Cards */
.tp-contact-card {
  background: #ffffff;
  padding: 45px 35px;
  border-radius: 12px;
  position: relative;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.tp-contact-card:hover {
  background: #6200ea;
  /* Màu tím theo yêu cầu */
  border-color: #6200ea;
  box-shadow: 0 10px 30px rgba(98, 0, 234, 0.3);
  transform: translateY(-5px);
}

.tp-contact-card:hover .tp-contact-card-title,
.tp-contact-card:hover .tp-contact-card-subtitle,
.tp-contact-card:hover .tp-contact-card-info p {
  color: #ffffff;
}

.tp-contact-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
}

.tp-contact-card-icon {
  width: 65px;
  height: 65px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #6200ea;
  /* Màu tím */
  margin-right: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.tp-contact-card:hover .tp-contact-card-icon {
  color: #6200ea;
}

.tp-contact-card-title-wrap {
  text-align: left;
}

.tp-contact-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #000000;
}

.tp-contact-card-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 0;
}

.tp-contact-card-info {
  text-align: left;
}

.tp-contact-card-info p {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.tp-contact-card-info p:last-child {
  margin-bottom: 0;
}

.tp-contact-card-arrow {
  position: absolute;
  bottom: 35px;
  right: 35px;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6200ea;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tp-contact-card-arrow:hover {
  background: #FFCC29;
  color: #1F2F05;
}

.tp-contact-card:hover .tp-contact-card-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.tp-contact-card:hover .tp-contact-card-info p {
  color: rgba(255, 255, 255, 0.9);
}

.tp-breadcrumb-area {
  display: flex;
  align-items: center;
  padding: 280px 0 150px;
  background: #edeef2;
}

/* Fix Tag Cloud Hover Text Color */
.tagcloud a:hover,
.tp-postbox-tagcloud-social a:hover {
  color: #ffffff !important;
  background-color: var(--th-cyan) !important;
  border-color: var(--th-cyan) !important;
}

/* ============================================
   Shop Page — Breadcrumb
   ============================================ */
.th-shop-breadcrumb {
  text-align: left;
  padding-left: 20px;
}

.th-shop-breadcrumb .tp-breadcrumb-title {
  font-size: 56px !important;
  font-weight: 800 !important;
  color: #111111 !important;
  margin-bottom: 10px !important;
}

.th-shop-breadcrumb .tp-breadcrumb-body {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  text-transform: uppercase !important;
}

.th-shop-breadcrumb .tp-breadcrumb-body a.home {
  color: #111111 !important;
  text-decoration: none !important;
}

.th-shop-breadcrumb .tp-breadcrumb-body a.home:hover {
  color: var(--th-cyan) !important;
}

.th-shop-breadcrumb .tp-breadcrumb-body .spacing {
  margin: 0 5px;
}

.th-shop-breadcrumb .tp-breadcrumb-body .th-breadcrumb-current {
  color: var(--th-cyan) !important;
}

/* ============================================
   Pagination — Square style (Thiên Hà branded)
   Override main.css .tp-postbox-pagination
   ============================================ */
.tp-postbox-pagination {
  text-align: center !important;
}

.tp-postbox-pagination nav ul {
  display: inline-flex !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  list-style: none !important;
  align-items: center !important;
}

.tp-postbox-pagination nav ul li {
  display: inline-block !important;
  margin-right: 0 !important;
}

.tp-postbox-pagination nav ul li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  line-height: 50px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: var(--tp-heading-primary, #000) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease-out !important;
  border: 1px solid #e6e6e6 !important;
  text-decoration: none !important;
}

.tp-postbox-pagination nav ul li a:hover {
  background-color: var(--th-cyan) !important;
  color: #ffffff !important;
  border-color: var(--th-cyan) !important;
}

.tp-postbox-pagination nav ul li a.active {
  background-color: var(--th-cyan) !important;
  color: #ffffff !important;
  border-color: var(--th-cyan) !important;
}

.tp-postbox-pagination nav ul li a i {
  font-size: 16px !important;
  color: inherit !important;
}

/* ============================================
   Shop Sidebar — Utilities
   ============================================ */

/* Truncate text to 2 lines with ellipsis */
.th-line-clamp-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Sidebar product price */
.th-sidebar-price {
  color: var(--th-magenta) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-top: 4px;
  display: inline-block;
}


@media (max-width: 767px) {
  .sidebar__widget {
    padding: 0px 0px;
  }
}


/* ========================================
   ABOUT SECTION IMAGE - About Page
   ======================================== */
.th-about-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: block;
}

.tp-about-area .tp-about-thumb {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.tp-about-area .tp-about-right-wrapper .tp-section-paragraph {
  line-height: 1.8;
}

/* ========================================
   BRAND AREA - About Page
   ======================================== */
.tp-brand-3-item {
  text-align: center;
}

.tp-brand-3-img-thum {
  padding: 25px 15px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110px;
  margin: 0 auto;
  width: 100%;
}

.tp-brand-3-img-thum img {
  max-height: 50px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* ========================================
   GALLERY PAGE — PinkBakery Style
   ======================================== */

/* Filter Buttons */
.th-gallery-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.th-filter-btn {
  background: transparent;
  border: 2px solid #e0e0e0;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.th-filter-btn:hover {
  border-color: var(--th-cyan, #00AEEF);
  color: var(--th-cyan, #00AEEF);
}

.th-filter-btn.active {
  background: var(--th-cyan, #00AEEF);
  border-color: var(--th-cyan, #00AEEF);
  color: #fff;
}

/* Hidden state for filtered items */
.th-gallery-card.th-hidden {
  display: none;
}

/* Main Grid — 6 column system */
.th-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* Size variants */
.th-g-sm {
  grid-column: span 1;
}

.th-g-md {
  grid-column: span 2;
}

.th-g-lg {
  grid-column: span 2;
  grid-row: span 2;
}

/* Card */
.th-gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}

.th-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.th-g-lg img {
  min-height: 420px;
}

/* Overlay */
.th-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.th-gallery-card:hover .th-gallery-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.th-gallery-card:hover img {
  transform: scale(1.05);
}

/* Icon */
.th-gallery-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 18px;
  transform: scale(0);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.th-gallery-card:hover .th-gallery-icon {
  transform: scale(1);
  opacity: 1;
}

/* Link */
.th-gallery-popup {
  display: block;
  position: relative;
  height: 100%;
}

/* Responsive — tablet */
@media (max-width: 991px) {
  .th-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .th-g-sm {
    grid-column: span 1;
  }

  .th-g-md {
    grid-column: span 1;
  }

  .th-g-lg {
    grid-column: span 1;
    grid-row: span 1;
  }

  .th-g-lg img {
    min-height: 200px;
  }

  .th-gallery-card {
    border-radius: 14px;
  }
}

/* Responsive — mobile */
@media (max-width: 575px) {
  .th-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .th-gallery-card img {
    min-height: 140px;
  }

  .th-gallery-card {
    border-radius: 12px;
  }

  .th-gallery-icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .th-filter-btn {
    padding: 8px 18px;
    font-size: 13px;
  }

  .th-gallery-filter-wrap {
    gap: 6px;
  }
}

/* Fix: Social icon hover — ensure <i> inherits white color */
.tpoffcanvas__social .social-icon a:hover i {
  color: var(--tp-common-white, #fff);
}

/* Fix: Slider social links hover */
.tp-slider-5-social a:hover i {
  color: var(--tp-common-white, #fff);
}

.tp-breadcrumb-title {
  letter-spacing: 0px;
}

/* ============================================
   Rich Text Content Images (Responsive Fix)
   Fix for large images breaking out of the container
   ============================================ */
.tp-postbox-paragraph img,
.tp-postbox-paragraph figure img,
.tp-postbox-paragraph iframe {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  /* Optional: adds a nice soft corner to content images */
}

.product-popup__modal .modal-content {
  padding: 25px;
  border-radius: 0;
}

/* ============================================
   PRODUCT QUICK VIEW MODAL - Compact Spacing
   ============================================ */
.product-popup__details-wrapper p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
  color: #555;
}

.product-popup__details-stock {
  margin-bottom: 6px;
}

.product-popup__details-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin-bottom: 6px !important;
}

.product-popup__details-price {
  margin-bottom: 0 !important;
}

.product-popup__details-more {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #f0f0f0;
}

.product-popup__details-more p {
  margin-bottom: 2px !important;
  font-size: 13px;
  color: #888;
}

/* Quantity + Button cùng dòng */
.product-popup__details-action {
  gap: 12px;
}

.product-popup__details-action .tp-product-popup-quantity {
  flex-shrink: 0;
}

.product-popup__details-action .product-popup-add-cart-btn {
  flex: 1;
}
/* ── Custom Modern Dropdown Menu (1-column, replacing theme default) ── */
.tp-header-main-menu > nav > ul .submenu {
  width: max-content !important;
  min-width: 240px !important;
  max-width: 480px !important;
  padding: 8px 0 !important; /* padding for the dropdown box */
  border-radius: 6px;
  border-top: 4px solid var(--tp-theme-primary); /* slightly thinner top border */
}

/* Base style for list items */
.tp-header-main-menu > nav > ul .submenu > li {
  margin: 0 !important;
  padding: 2px 12px; /* reduced gap between items inside the dropdown */
}

/* Remove default dash before */
.tp-header-main-menu > nav > ul .submenu > li > a::before,
.tp-header-main-menu > nav > ul .submenu > li > a::after {
  display: none !important;
}

/* Modern clean link style */
.tp-header-main-menu > nav > ul .submenu > li > a {
  display: block;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 5px 20px !important; /* tighter vertical padding, wider horizontal padding */
  margin: 0 !important; /* reset margin shift */
  font-size: 15px;
  font-weight: 600; /* slightly bolder as requested */
  color: var(--tp-heading-primary);
  border-radius: 4px;
  text-transform: none; /* or capitalize */
  transition: all 0.2s ease-in-out;
  border-left: 0px solid transparent;
}

/* Hover & Active block style */
.tp-header-main-menu > nav > ul .submenu > li > a:hover,
.tp-header-main-menu > nav > ul .submenu > li > a.active {
  background-color: #f0f8ff !important; /* Light blue highlight */
  color: var(--tp-theme-primary) !important;
  border-left: 3px solid var(--tp-theme-primary);
  padding-left: 17px !important; /* keep total width same: 20 - 3 = 17 */
  margin-left: 0 !important; /* fix theme shift */
}

/* User Request: Resize H2 and H3 for article, product, and service detail pages */
.product__details-description-paragraph h2,
.tp-postbox-paragraph h2,
.tp-postbox-content h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.product__details-description-paragraph h3,
.tp-postbox-paragraph h3,
.tp-postbox-content h3 {
    font-size: 25px;
    margin-bottom: 15px;
    margin-top: 25px;
}
