/* ========== GLOBAL ========== */
html, body {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* ===== Products Section ===== */
.products .product-card {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.products .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Ảnh sản phẩm */
.product-card__img {
  width: 100%;
  height: 220px;              /* cùng chiều cao cho mọi ảnh */
  object-fit: cover;          /* giữ tỉ lệ, không méo hình */
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img {
  transform: scale(1.08);
}

/* Tiêu đề & giá */
.product-card h6 {
  font-size: 0.95rem;
  color: #222;
}
.product-card p {
  font-weight: 500;
  color: #ff0044;
  font-size: 0.9rem;
}

/* Responsive tinh chỉnh */
@media (max-width: 768px) {
  .product-card__img {
    height: 180px;
  }
}

/* ========== SLIDER ========== */
.home__slider img {
    height: 600px;
    object-fit: cover;
}
.carousel-caption {
    bottom: 25%;
    animation: fadeUp 1s ease both;
}
.carousel-caption h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
}
.carousel-caption p {
    font-size: 1.2rem;
    color: #eee;
}
.carousel-caption a {
    background: #fff;
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s;
}
.carousel-caption a:hover {
    background: #f5b400;
    color: #000;
}

/* ========== INTRO ========== */
.intro {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.typing-text {
    display: inline-block;
    border-right: 3px solid #111;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(30) 1s infinite alternate, blink 0.8s step-end infinite;
}
.animate-btn:hover {
    background: #f5b400;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ========== COLLECTION ========== */
.collection__item {
    position: relative;
    overflow: hidden;
}
.collection__item img {
    transition: all 0.6s ease;
}
.collection__item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}
.collection__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.4s ease;
}
.collection__item:hover .collection__overlay {
    opacity: 1;
}

/* ========== PRODUCTS ========== */
.product-card {
    background: #fff;
    border-radius: 15px;
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.product-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ========== BLOG ========== */
.blog-card__img {
    height: 230px;
    object-fit: cover;
    transition: 0.4s ease;
}
.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

/* ========== NEWSLETTER ========== */
.newsletter input {
    border: 1px solid #ddd;
}
.newsletter button {
    background: #000;
    color: #fff;
    transition: 0.3s;
}
.newsletter button:hover {
    background: #f5b400;
    color: #000;
}

/* ========== MESSENGER ========== */
#messenger-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0078ff;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}
#messenger-icon:hover {
    transform: scale(1.1);
}

/* ========== KEYFRAMES ========== */
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h2 { font-size: 1.8rem; }
    .carousel-caption p { font-size: 1rem; }
}
