/*
Theme Name: Vela Beauty
Theme URI: https://example.com/vela-theme/
Author: Your Name or Company
Author URI: https://example.com/
Description: A modern and elegant beauty and cosmetics WordPress theme inspired by the Vela design. This theme is fully responsive and built with a strong design system for easy customization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, beauty, cosmetics, responsive-layout, custom-colors, one-column, two-columns, accessibility-ready
Text Domain: vela
*/

/* 
==============================================
TABLE OF CONTENTS
==============================================
0.0  - Font Definitions (@font-face)
1.0  - Design System (CSS Variables)
    1.1 - Color Palette
    1.2 - Typography
    1.3 - Spacing & Layout
    1.4 - UI Elements
2.0  - Global Resets & Foundational Styles
3.0  - Typography Defaults
4.0  - Layout & Container
5.0  - Utility Classes
6.0  - Header Styles (To be added later)
7.0  - Footer Styles (To be added later)
...
==============================================
*/


/* 
==============================================
0.0 - Font Definitions (@font-face)
==============================================
Define local fonts here. By defining multiple weights under the
same font-family, we can use the `font-weight` property naturally.

*/


/*
==============================================
TOP BAR
==============================================
*/

.announcement-bar {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--spacing-sm) 0;
  text-align: center;
}

.announcement-bar__text {
  margin: 0;
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.5px;
}

/* 6.2 - Main Header Layout */
.site-header {
  background-color: var(--color-white);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* 3 columns: Left - Center (auto) - Right */
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-sm) 0;
}

/* 6.3 - Logo */
.site-header__logo {
  /* Center logo in its column */
  height: 120px;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.logo-text span {
  color: var(--color-accent);
}

/* 6.4 - Main Navigation (Desktop) */
.main-navigation ul {
  display: flex;
  justify-content: flex-start;
  /* Align menu to the left */
  align-items: center;
  gap: var(--spacing-xl);
}

.main-navigation ul a {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  position: relative;
  padding: var(--spacing-sm) 0;
}

.main-navigation ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.main-navigation ul a:hover::after,
.main-navigation .current-menu-item>a::after {
  transform: scaleX(1);
}

.site-header__actions {
  justify-self: end;
}

.header-actions-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.header-action-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  position: relative;
  color: var(--color-text-primary);
}

.header-action-item .material-icons {
  font-size: 24px;
  transition: color var(--transition-fast);
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.wooo_login:hover {
  cursor: pointer;
}

.header-action-item:hover>span {
  color: var(--color-accent);
}

a.header-action-item:hover .material-icons,
a.header-action-item:hover span {
  color: var(--color-accent);
}


.wc-block-components-button__text,
.wc-block-components-checkout-place-order-button__text {
  color: #333;
}

.wc-block-components-button__text {
  color: #fff;
}

.wc-block-components-button.wp-element-button.wc-block-cart__submit-button:hover .wc-block-components-button__text {
  color: #333;
}

a.header-action-item:hover span.count-badge.cart-count {
  color: #fff;
}

.header-action-item .count-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: var(--color-accent);
  color: var(--color-white);
  width: 18px;
  height: 18px;
  border-radius: var(--border-radius-full);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 6.6 - Mobile Navigation & Toggle */
.mobile-nav-toggle {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-box {
  display: inline-block;
  position: relative;
  height: 80px;
  width: 80px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 34px;
  height: 2px;
  background-color: var(--color-accent);
  position: absolute;
  transition: transform 0.2s ease-in-out;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
}

.hamburger-inner::before {
  content: '';
  top: -10px;
}

.hamburger-inner::after {
  content: '';
  bottom: -10px;
}

.mobile-nav-active .hamburger-inner {
  background-color: transparent;
}

.mobile-nav-active .hamburger-inner::before {
  transform: translateY(10px) rotate(45deg);
}

.mobile-nav-active .hamburger-inner::after {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 80%;
  height: 100vh;
  background-color: var(--color-background);
  box-shadow: var(--box-shadow-medium);
  padding: var(--spacing-xxl) var(--spacing-xl);
  z-index: 1000;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav--is-open {
  right: 0;
}

body.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav ul li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav ul a {
  display: block;
  padding: var(--spacing-lg) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
}

/* 6.7 - Responsive Media Queries */
@media (max-width: 992px) {
  .site-header__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }

  .site-header__logo {
    text-align: left;
  }

  .site-header__navigation,
  .site-header__actions {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
    justify-self: end;
  }
}

/* 
==============================================
7.0 - Hero Slider Section
==============================================
*/
.hero-slider {
  position: relative;
  background-color: var(--color-surface-primary);
  /* Use the defined background color */
  height: calc(100vh - 150px);
  /* Screen height minus the header height (estimated) */
  width: 100%;
  overflow: hidden;
  display: flex;
  /* Use flex for easy alignment */
  align-items: center;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  /* Important for positioning child elements */
  display: flex;
  align-items: center;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.6s ease-out 0.3s, opacity 0.6s ease-out 0.3s;
}

/* When the slide is active, the content will slide in and appear */
.slide.active .slide-content {
  transform: translateX(300px);
  opacity: 1;
}

/* Right-side background image */
.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure the image always fills the container without distortion */
}

/* Reusing font variables */
.slide .subtitle {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.slide .title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-heading);
}

.slide .description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 450px;
  /* Limit width for better readability */
}

.slide .btn {
  background-color: var(--color-accent);
  /* Button color from variable */
  color: var(--color-white);
  padding: var(--spacing-md) var(--spacing-xl);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  text-transform: uppercase;
  display: inline-block;
  /* Important for the button */
  border: none;
}

.slide .btn:hover {
  background-color: var(--color-accent-hover);
  /* Hover color from variable */
}

/* Navigation buttons (arrows) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: var(--box-shadow-subtle);
  transition: all var(--transition-fast);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.slider-arrow.prev {
  left: var(--spacing-xs);
}

.slider-arrow.next {
  right: var(--spacing-xs);
}

.slider-pagination {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
  gap: var(--spacing-sm);
}

.dot {
  height: 12px;
  width: 12px;
  background-color: transparent;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background-color: var(--color-accent);
}

/* Responsive for slider */
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
  }

  .slide-content {
    max-width: 100%;
    text-align: center;
    padding: 0 var(--container-padding-x);
    background-color: rgba(252, 251, 249, 0.7);
    border-radius: var(--border-radius-md);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  .slide.active .slide-content {
    transform: translateY(0);
  }

  .slide .description {
    margin-left: auto;
    margin-right: auto;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow.prev {
    left: var(--spacing-md);
  }

  .slider-arrow.next {
    right: var(--spacing-md);
  }
}

/*
==============================================
Category Section
==============================================
*/

/* 8.1 - Category Section */
.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  /* Space from title to grid */
  color: var(--color-accent);
}

.category-grid {
  display: grid;
  /* Default 4 columns on desktop */
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.category-card {
  text-align: center;
}

.category-card__image-wrapper {
  overflow: hidden;
  /* Important: Hide the scaled part of the image */
  border-radius: var(--border-radius-lg);
  /* Border radius for the wrapper */
  margin-bottom: var(--spacing-lg);
  position: relative;
  height: 300px;
}

.category-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  /* Border radius for the image itself */
  transition: transform var(--transition-smooth);
  /* Smooth effect */
}

/* Hover effect to scale the image */
.category-card__link:hover .category-card__image-wrapper img {
  transform: scale(1.05);
}

.category-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-fast);
}

.category-card__count {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  /* Accent color for product count */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  /* Distance from text to underline */
  transition: color var(--transition-fast);
}

/* Hover effect for text */
.category-card__link:hover .category-card__title {
  color: var(--color-accent);
}

.category-card__link:hover .category-card__count {
  color: var(--color-accent-hover);
}


/* 
----------------------------------------------
Responsive for Category Section
----------------------------------------------
*/

/* Tablet - 2 columns */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 1 column */
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/*
==============================================
8.2 - Product Section
==============================================
*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 columns on desktop */
  gap: var(--grid-gap);
}

.product-card {
  text-align: left;
}

/* --- Image and Hover Effects Section --- */
.product-card__image-wrapper {
  position: relative;
  /* Important for positioning child buttons */
  background-color: var(--color-surface-tertiary);
  /* Light background color for the image */
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  /* Hide overflowing child elements */
}

.product-card__image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  /* Ensure the image is always square */
  object-fit: contain;
  /* Display the entire product, without cropping */
  transition: transform var(--transition-smooth);
}

/* Dark overlay on hover */
.product-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  /* Hidden by default */
  transition: opacity var(--transition-smooth);
}

/* Quick View Button */
.btn--quick-view {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transform: translateY(20px);
  /* Slide up effect */
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-accent);
  text-align: center;
  display: flex;
  justify-content: center;
  align-content: center;
}

.btn--quick-view:hover {
  background: var(--color-white);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--quick-view .material-icons {
  font-size: 18px;
}

/* Wishlist Button */
.btn--wishlist {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  /* Hidden by default */
  transform: translateX(20px);
  /* Slide in effect */
  transition: all var(--transition-smooth);
}

.btn--wishlist .material-icons {
  font-size: 20px;
}

/* --- Activate Hover Effects on Image --- */
.product-card__image-wrapper:hover .product-card__overlay {
  opacity: 1;
}

.product-card__image-wrapper:hover .btn--quick-view {
  transform: translateY(0);
}

.product-card__image-wrapper:hover .btn--wishlist {
  opacity: 1;
  transform: translateX(0);
}

.product-card__image-wrapper:hover img {
  transform: scale(1.05);
  /* Slight image scale */
}


/* --- Product Information Section --- */
.product-card__info {
  margin-bottom: var(--spacing-md);
  min-height: 163px;
}

.product-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* GiÃ¡Â»â€ºi hÃ¡ÂºÂ¡n 2 dÃƒÂ²ng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  /* chÃ¡Â»â€°nh line-height cho Ã„â€˜Ã¡ÂºÂ¹p */
  max-height: 2.8em;
  /* line-height * sÃ¡Â»â€˜ dÃƒÂ²ng */
}

.product-card__title a:hover {
  color: var(--color-accent);
}

/* Display star rating */
.product-card__rating {
  margin-bottom: var(--spacing-xs);
}

.star-rating {
  font-size: 0.9em;
  color: var(--color-rating);
}

.product-card__details {
  min-height: 90px
}

.product-card__price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

/* Add to Cart Button */
.product-card__actions .button {
  width: 100%;
  text-align: center;
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  font-weight: var(--font-weight-medium);
}

.product-card__actions .button:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* 
----------------------------------------------
Responsive for Product Section
----------------------------------------------
*/
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on tablet */
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
  }
}



.search.active {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  overflow: auto;
  z-index: 9999;
}

/*
==============================================
CSS HOÀN CHỈNH CHO POPUP TÌM KIẾM
==============================================
*/

/* --- 1. Container chính của popup --- */
/*
 * Giả định rằng thẻ <section class="search"> của bạn 
 * đã được định vị là 'fixed' và chiếm toàn bộ màn hình.
 * Đoạn code này tập trung vào phần nội dung bên trong.
*/
section.search.active {

  display: flex;
  justify-content: flex-end;
  /* Đẩy nội dung sang phải */
}

/* --- 2. Khung nội dung chính màu trắng --- */
.search__form {
  width: 100%;

  /* Chiều rộng của popup */
  background-color: #ffffff9c;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
  /* Quan trọng để padding không làm tăng kích thước */
}

/* --- 3. Nút đóng (X) --- */
.close__search {
  position: absolute;
  top: 30px;
  right: 10px;
  /* = max-width của popup + khoảng cách */
  font-size: 32px;
  color: var(--color-black);
  cursor: pointer;
  z-index: 10000;
}

/* --- 4. Tiêu đề "WHAT ARE YOU LOOKING FOR?" --- */
/* HTML của bạn không có phần này, nhưng đây là cách thêm nếu bạn muốn */
.search__form::before {
  content: 'WHAT ARE YOU LOOKING FOR?';
  display: block;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- 5. Form tìm kiếm và input --- */
#product-search-form {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

#product-search-keyword {
  width: 100%;
  border: none;
  outline: none;
  padding: 15px 40px 15px 0;
  /* Thêm khoảng trống cho icon search */
  font-size: 1.2rem;
  font-weight: 300;
  background: transparent;
}

#product-search-keyword::placeholder {
  color: #aaa;
}

/* Thêm icon tìm kiếm (giả lập bằng CSS) */
#product-search-form::after {
  content: 'search';
  /* Tên icon của Material Icons */
  font-family: 'Material Icons';
  /* Hoặc 'Material Icons Outlined' */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #333;
}


/* --- 6. Khu vực kết quả tìm kiếm --- */
#product-search-result {
  flex-grow: 1;
  /* Chiếm hết không gian còn lại */
  overflow-y: scroll;
  /* Thêm thanh cuộn khi kết quả dài */
  padding-right: 15px;
  /* Khoảng trống cho thanh cuộn */
  margin-right: -15px;
  /* Bù lại padding */
}

/* Tiêu đề "PRODUCTS" */
#product-search-result ul::before {
  content: 'PRODUCTS';
  display: block;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#product-search-result ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- 7. Từng mục sản phẩm trong kết quả --- */
#product-search-result li a {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

#product-search-result li:last-child a {
  border-bottom: none;
}

#product-search-result li a:hover {
  background-color: #f9f9f9;
}

#product-search-result img {
  width: 70px;
  /* Kích thước ảnh */
  height: 70px;
  object-fit: cover;
  margin-right: 20px;
}

.name-pd {
  font-weight: 500;
  text-transform: uppercase;
  /* Chữ in hoa */
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.price-pd {
  color: #777;
  font-size: 0.9em;
}

/* --- 8. Footer "Search for..." (Cần thêm vào JS) --- */
/* Đoạn CSS này để sẵn, bạn chỉ cần thêm thẻ div này bằng JS là nó sẽ hoạt động */
.search-popup__footer {
  margin-top: auto;
  /* Đẩy xuống dưới cùng */
  padding-top: 20px;
}

.search-popup__footer a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  text-decoration: none;
  color: #555;
  transition: background-color 0.2s;
}

.search-popup__footer a:hover {
  background-color: #eee;
}

/* Icon mũi tên (giả lập) */
.search-popup__footer a::after {
  content: 'arrow_forward';
  font-family: 'Material Icons';
  font-size: 24px;
}


/*
==============================================
10.0 - Features Section
==============================================
*/
.features-section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.features-grid {
  display: grid;
  /* 4 cÃ¡Â»â„¢t trÃƒÂªn mÃƒÂ¡y tÃƒÂ­nh Ã„â€˜Ã¡Â»Æ’ bÃƒÂ n */
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  text-align: center;
}

.feature-item:hover span {
  cursor: pointer;
  transform: rotate3d(1, 1, 1, 360deg);
}

.feature-item {
  position: relative;
  z-index: 99999999;
}

.feature-item:hover .feature-icon {
  transform: rotate(360deg);
  cursor: pointer;
}

.feature-icon .material-icons {
  font-size: 48px;
  /* Ã„ÂiÃ¡Â»Âu chÃ¡Â»â€°nh kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc nÃ¡ÂºÂ¿u cÃ¡ÂºÂ§n */
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  display: inline-block;
  transition: all .4s;
}

.feature-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/*
----------------------------------------------
Responsive for Features Section
----------------------------------------------
*/

/* Cho mÃƒÂ¡y tÃƒÂ­nh bÃ¡ÂºÂ£ng */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 cÃ¡Â»â„¢t */
  }
}

/* Cho Ã„â€˜iÃ¡Â»â€¡n thoÃ¡ÂºÂ¡i di Ã„â€˜Ã¡Â»â„¢ng */
@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
    /* 1 cÃ¡Â»â„¢t */
  }
}

/*
==============================================
11.0 - Tips & Tricks Section (Swiper)
==============================================
*/

/* --- CÃ¡ÂºÂ¥u trÃƒÂºc card --- */
.tip-card {
  text-align: left;
}

/* --- Wrapper hÃƒÂ¬nh Ã¡ÂºÂ£nh vÃƒÂ  hiÃ¡Â»â€¡u Ã¡Â»Â©ng Hover --- */
.tip-image-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  /* Quan trÃ¡Â»Âng Ã„â€˜Ã¡Â»Æ’ hiÃ¡Â»â€¡u Ã¡Â»Â©ng zoom hoÃ¡ÂºÂ¡t Ã„â€˜Ã¡Â»â„¢ng Ã„â€˜ÃƒÂºng */
  margin-bottom: var(--spacing-lg);
}

.tip-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.tip-image-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.4);
  /* LÃ¡Â»â€ºp phÃ¡Â»Â§ mÃƒÂ u tÃ¡Â»â€˜i, hÃ†Â¡i trong suÃ¡Â»â€˜t */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  /* Ã¡ÂºÂ¨n mÃ¡ÂºÂ·c Ã„â€˜Ã¡Â»â€¹nh */
  transition: opacity var(--transition-fast);
}

.tip-image-wrapper .overlay-icon {
  background-color: var(--color-accent);
  color: var(--color-white);
  width: 60px;
  height: 60px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  /* Icon hÃ†Â¡i nhÃ¡Â»Â lÃ¡ÂºÂ¡i lÃƒÂºc Ã„â€˜Ã¡ÂºÂ§u */
  transition: transform var(--transition-fast);
}

/* --- KÃƒÂ­ch hoÃ¡ÂºÂ¡t hiÃ¡Â»â€¡u Ã¡Â»Â©ng khi hover --- */
.tip-image-wrapper:hover .overlay {
  opacity: 1;
  /* HiÃ¡Â»â€¡n lÃ¡Â»â€ºp phÃ¡Â»Â§ */
}

.tip-image-wrapper:hover .overlay-icon {
  transform: scale(1);
  /* PhÃƒÂ³ng to icon vÃ¡Â»Â kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc thÃ¡ÂºÂ­t */
}

.tip-image-wrapper:hover img {
  transform: scale(1.05);
  /* Zoom nhÃ¡ÂºÂ¹ vÃƒÂ o Ã¡ÂºÂ£nh */
}


/* --- KiÃ¡Â»Æ’u chÃ¡Â»Â¯ cho nÃ¡Â»â„¢i dung card --- */
.tip-content .tip-date {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  /* MÃƒÂ u Ã„â€˜Ã¡Â»Â nhÃ¡ÂºÂ¥n */
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-sm);
}

.tip-content .post-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.tip-content .post-card__title a {
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.tip-content .post-card__title a:hover {
  color: var(--color-accent);
  /* Ã„ÂÃ¡Â»â€¢i mÃƒÂ u tiÃƒÂªu Ã„â€˜Ã¡Â»Â khi hover */
}

.tip-content .tip-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  /* MÃƒÂ u xÃƒÂ¡m cho Ã„â€˜oÃ¡ÂºÂ¡n trÃƒÂ­ch */
  line-height: var(--line-height-base);
  margin: 0;
}

/*
==============================================
12.0 - Footer Styles
==============================================
*/

/* --- Main Footer Wrapper --- */
.main-footer {
  background-color: var(--color-background);
  padding: var(--spacing-xxl) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-top: var(--spacing-xl);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-x);
  display: grid;
  /* Chia layout thÃƒÂ nh 4 cÃ¡Â»â„¢t theo HTML */
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--spacing-xl);
}

/* --- General Column Styles --- */
.footer-column h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
}

/* --- Column 1: Company Info --- */
.company-info img {
  /* Ã„ÂiÃ¡Â»Âu chÃ¡Â»â€°nh kÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc logo nÃ¡ÂºÂ¿u cÃ¡ÂºÂ§n */
  margin-bottom: var(--spacing-lg);
}

.company-info .contact-block,
.company-info .address-block {
  margin-bottom: var(--spacing-md);
}

.company-info h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  margin: 0;
  white-space: nowrap;
}

.company-info span,
.company-info span a {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

.company-info span a:hover {
  color: var(--color-accent);
}

/* --- Column 2 & 3: Menu Links --- */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: var(--spacing-md);
}

.footer-column ul li a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--color-accent);
}


.list-bill {
  display: flex;
  gap: 1rem;
}

.list-bill li img {
  height: 62px;
}


.social-follow {
  margin-top: var(--spacing-xl);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.social-icons a img {
  width: 30px;
  height: 30px;
  opacity: .8;
  transition: opacity var(--transition-fast);
}

.social-icons a:hover img {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--color-white);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  /* TÃ¡ÂºÂ¡o khoÃ¡ÂºÂ£ng cÃƒÂ¡ch vÃ¡Â»â€ºi cÃƒÂ¡c cÃ¡Â»â„¢t Ã¡Â»Å¸ trÃƒÂªn */
  text-align: center;
}

.footer-bottom .container {
  /* Ã„ÂÃ¡ÂºÂ£m bÃ¡ÂºÂ£o nÃ¡Â»â„¢i dung trong container Ã„â€˜Ã†Â°Ã¡Â»Â£c cÃ„Æ’n giÃ¡Â»Â¯a */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 2.5rem;
  /* KÃƒÂ­ch thÃ†Â°Ã¡Â»â€ºc chÃ¡Â»Â¯ cho logo */
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.footer-logo .logo-v {
  color: var(--color-accent);
  /* MÃƒÂ u nhÃ¡ÂºÂ¥n cho chÃ¡Â»Â¯ 'V' */
}

.copyright-text {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin: 0 0 var(--spacing-xs) 0;
  /* BÃ¡Â»Â margin top/bottom mÃ¡ÂºÂ·c Ã„â€˜Ã¡Â»â€¹nh cÃ¡Â»Â§a thÃ¡ÂºÂ» p */
}

.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  /* KhoÃ¡ÂºÂ£ng cÃƒÂ¡ch giÃ¡Â»Â¯a cÃƒÂ¡c icon */
}

.footer-logo {
  height: 60px;
  width: 60px;
}

.payment-methods img {
  height: 24px;
  /* ChiÃ¡Â»Âu cao cÃ¡Â»â€˜ Ã„â€˜Ã¡Â»â€¹nh cho cÃƒÂ¡c icon */
  width: auto;
}

/* 
----------------------------------------------
Responsive for Footer
----------------------------------------------
*/

@media (max-width: 992px) {
  .footer-container {
    /* ChuyÃ¡Â»Æ’n thÃƒÂ nh 2 cÃ¡Â»â„¢t trÃƒÂªn tablet */
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-container {
    /* ChuyÃ¡Â»Æ’n thÃƒÂ nh 1 cÃ¡Â»â„¢t trÃƒÂªn mobile */
    grid-template-columns: 1fr;
  }

  .company-info h4 {
    white-space: normal;
  }
}

.site-header__logo img {
  height: 100%;
  width: 100%;
}