/* =====================================================
   RESET / BASE
===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    Meiryo,
    sans-serif;
  background: #fafafa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   TABS WRAPPER
===================================================== */
.tabs2 {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Ẩn radio */
.tabs2 input[type="radio"] {
  display: none;
}

/* =====================================================
   TAB HEADER
===================================================== */
.tab-header {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.tab_item {
  border: 2px solid #cfcfcf;          /* 👈 viền xám nhạt */
  background: #ffffff;
  margin: 0 12px;
  min-width: 260px;              /* 👉 tab rộng hơn */
  text-align: center;
  padding: 18px 32px;            /* 👉 cao & ngang hơn */
  color: #333;
  font-weight: 800;
  font-size: 18px;               /* 👉 font to hơn */
  border-radius: 999px;
  cursor: pointer;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tab_item:hover {
  background: #e4e4e4;
  transform: translateY(-2px);
}

/* Active tab */
#tab-plastic:checked ~ .tab-header label[for="tab-plastic"],
#tab-paper:checked ~ .tab-header label[for="tab-paper"] {
  background: #3f2a1d;
  color: #ffffff;
  font-size: 20px;               /* 👉 active to hơn */
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
/* =====================================================
   TAB CONTENT
===================================================== */
.tab_content {
  display: none;
  margin-top: 24px;
}

#tab-plastic:checked ~ .tab-body #plastic {
  display: block;
}

#tab-paper:checked ~ .tab-body #paper {
  display: block;
}
.tab-body, .tabs2 {
  overflow: visible !important;
}
/* =====================================================
   CARD GRID
===================================================== */
.cardlayout-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px; /* mobile */
}

/* =====================================================
   CARD BASE
===================================================== */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 10px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  position: relative;  /* để z-index hoạt động */
  z-index: 10;
}

/* =====================================================
   CAPACITY BADGE (TOP)
===================================================== */
.rank {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 10px;
  line-height: 1.2;
}
.tabs2 .card .rank {
  background: #c0392b;
  color: #ffffff;
}
/* =====================================================
   IMAGE
===================================================== */
.img-link {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

.img-link img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

/* =====================================================
   PRODUCT INFO
===================================================== */
.product-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #3f2a1d;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  margin: 0 0 6px;
  color: #555555;
}

.note {
  font-size: 14px;
  color: #555555;
  margin-bottom: 12px;
  font-weight: 700;       /* in đậm */
  line-height: 1.4;
  
}

/* =====================================================
   BADGES
===================================================== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 4px;
  margin-bottom: 4px;
  vertical-align: middle;
  text-align: center;
}

.badge.sample {
  background: #e74c3c;
  color: #ffffff;
}

.badge.mw {
  background: #3498db;
  color: #ffffff;
}

/* =====================================================
   INFO ROW (BOTTOM)
===================================================== */
.info-row {
  margin-top: auto;
  font-size: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #000000;
  border-radius: 12px;
  background: #ffffff;
}

.info-row span {
  font-size: 40px;
  font-weight: 800;
  color: #333333;
  
}
@media (min-width: 1024px) {
  .info-row span {
    font-size: 25px;
  }
}
/* =====================================================
   BUTTON
===================================================== */
.btn-more {
  font-size: 13px;
  font-weight: 600;
  color: #3f2a1d;
  border: 1px solid #3f2a1d;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-more:hover {
  background: #3f2a1d;
  color: #ffffff;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .cardlayout-wrap {
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .card {
    padding: 18px 20px 22px;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 cột trên PC */
  }
  }
.card:has(.info-row span:contains("301~500cc")) {
    transform: none !important;
    margin: 0 auto;                  /* 👉 căn giữa */
    z-index: 2;
  }
  .product-name {
    font-size: 16px;
  }

  .note {
    font-size: 14px;
    line-height: 1.5;
  }

.card.is-featured {
    transform: scale(1.06);
    z-index: 2;
  }
  .info-row span {
    font-size: 20px !important;   /* tăng từ 25px lên 32px */
    font-weight: 800;
}
@media (max-width: 768px) {
  .cardlayout-wrap {
    grid-template-columns: 1fr !important;
  }

  .rank {
    font-size: 16px!important;
    line-height: 1.2;
    padding: 2px 6px!important;
  }
  .card {
    padding-bottom: 14px;  /* thêm khoảng trống dưới info-row */
  }
  .info-row span {
    font-size: 16px !important;  /* mobile tablet */
  }
}

@media (max-width: 480px) {
  .tabs2 {
    margin: 24px auto;
  }

  .card {
    padding: 12px;
  }

  .rank {
    font-size: 20px!important;
    line-height: 1.15;
    padding: 1px 4px!important;
}
  .info-row span {
    font-size: 16px !important;   /* mobile nhỏ */
  }
  .cardlayout-wrap {
    grid-template-columns: 1fr !important; /* 1 cột */
    }
@media (max-width: 768px) {
  .cardlayout-wrap {
    grid-template-columns: 1fr !important;
  }
}
#tab-plastic:checked ~ .tab-header label[for="tab-plastic"],
#tab-paper:checked ~ .tab-header label[for="tab-paper"] {
  font-size: 19px;
}
 