/**
 * Card sản phẩm: bỏ khoảng trống lớn phía trên bảng thông số.
 * mt-auto + h-full kéo CTA/thông số ra hai đầu card khi hàng bị stretch theo card cao nhất.
 */
html.storefront-root a[href*="/san-pham/"].flex.flex-col,
html.storefront-root a[href*="/san-pham/"].group.flex,
html.storefront-root a[href*="/san-pham/"].group.relative.block,
html.storefront-root a[href*="/san-pham/"].group {
  height: auto !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  align-self: start;
}

html.storefront-root a[href*="/san-pham/"] > .flex.h-full,
html.storefront-root a[href*="/san-pham/"] > [class*="flex-col"] {
  height: auto !important;
}

html.storefront-root .grid:has(> a[href*="/san-pham/"]),
html.storefront-root .grid:has(> * > a[href*="/san-pham/"]) {
  align-items: start;
}

html.storefront-root a[href*="/san-pham/"] .mt-auto,
html.storefront-root [class*="CardContent"] .mt-auto,
html.storefront-root [class*="card-content"] .mt-auto {
  margin-top: 0.75rem !important;
}

html.storefront-root .giasy-product-specs {
  margin-top: 8px !important;
  margin-bottom: 2px !important;
}

/* Cùng thứ tự mọi card: ảnh / tên / giá → thông số → Xem chi tiết */
html.storefront-root a[href*="/san-pham/"].flex.flex-col > .giasy-product-specs,
html.storefront-root a[href*="/san-pham/"].group.flex > .giasy-product-specs {
  order: 40 !important;
}

html.storefront-root a[href*="/san-pham/"].flex.flex-col > .mt-auto,
html.storefront-root a[href*="/san-pham/"].group.flex > .mt-auto {
  order: 50 !important;
}
