
:root {
  --primary: #ff6b00;
  --transparent: #ffffff00;
  --dark: #222;
  --light: #fff;
  --gray: #f4f4f4;
  --radius: 8px;
  --max-width: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; background: var(--gray); color: var(--dark); line-height: 1.55; }
a { text-decoration: none; color: inherit; }
img { width: 100%; display: block; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.flex { display: flex; align-items: center; }
.space-between { justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; }
.site-header { background: var(--light); box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: .75rem 0; position: sticky; top: 0; z-index: 100; }
.nav-btn { font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.quick-access { background: linear-gradient(135deg,var(--primary),#ffb300); color: var(--light); padding: 2rem 0; }
.quick-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; font-weight: 500; justify-content: center; }
.quick-cta { margin-top: 1.5rem; text-align: center; }
.quick-cta .qr-placeholder { width: 80px; height: 80px; border: 2px dashed var(--light); margin: 0 auto 1rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--light); color: var(--primary); padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600; display: inline-block; }
.btn-primary:hover { opacity: .8; }
.categories h2, .product-list h2 { margin: 2rem 0 1rem; font-size: 1.4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.25rem; }
.card { background: var(--light); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.05); cursor: pointer; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card h3 { padding: 1rem; font-size: 1rem; font-weight: 600; text-align: center; }
.filter-bar { display: flex; gap: 1rem; align-items: center;justify-content: center; margin: 2rem auto;    max-width: var(--max-width); width: 100%;}
.filter-bar select, .filter-bar input { padding: .5rem; border: 1px solid #ddd; border-radius: var(--radius); flex: 1; max-width: 220px; }
.price { display: block; font-weight: 600; margin: 0 0 1rem 1rem; }
.price.original { text-decoration: line-through; opacity:.6; margin-left:.25rem;}
.price.discount { color: var(--primary); }
.site-footer { background: #1b1b1b; color: var(--light); padding: 2rem; text-align: center; margin-top: 3rem; font-size: .9rem; }
.fab { position: fixed; right: 1rem;  padding: .75rem 1rem; background:  var(--transparent); color: var(--light); text-align: center; font-weight: 600; }
.fab-zalo { bottom: 5rem; }
.fab-call { bottom: 1rem; }
/* Giữ nguyên CSS hiện tại của bạn */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Optional: Add spacing between icons */
  margin-right: 10px;
  /* Drop shadow effect */
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  /* Animation */
  transition: transform 0.3s ease-in-out;
}

.icon-link:hover {
  transform: scale(1.1); /* Slightly enlarge on hover */
}

.icon {
  width: 45px;
  height: 45px;
  vertical-align: middle;
}

/* Thêm CSS cho hiệu ứng ripple */
.icon-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 1.0s linear infinite;
  pointer-events: none; /* Đảm bảo không ảnh hưởng đến các sự kiện chuột */
  z-index: -1; /* Đặt phía sau icon */
}
/* Lớp ripple thứ hai - sử dụng ::after */
.icon-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 1.5s linear infinite 0.75s; /* Độ trễ 1s so với lớp đầu tiên */
  pointer-events: none;
  z-index: -2;
}
/* Màu ripple riêng cho Zalo - cả 2 lớp */
.fab-zalo::before {
  background-color: rgba(0, 104, 255, 0.4); /* Màu xanh Zalo đậm hơn */
}

.fab-zalo::after {
  background-color: rgba(0, 104, 255, 0.2); /* Màu xanh Zalo nhạt hơn */
}

/* Màu ripple riêng cho nút gọi điện - cả 2 lớp */
.fab-call::before {
  background-color: rgba(0, 185, 0, 0.4); /* Màu xanh lá đậm hơn */
}

.fab-call::after {
  background-color: rgba(0, 185, 0, 0.2); /* Màu xanh lá nhạt hơn */
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0;
  }
}
@media(max-width:768px){ .quick-list li{ flex:1 1 45%; } }
